From: Adeel Kazmi Date: Fri, 23 Jun 2017 12:05:53 +0000 (+0100) Subject: Change PositionUsesAnchorPoint property to PositionUsesPivotPoint X-Git-Tag: submit/trunk/20170823.075128~91^2~35^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c01c5b862fa6b4e381cd1ac1cd77d42f9ac707e9;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Change PositionUsesAnchorPoint property to PositionUsesPivotPoint Change-Id: Ie977eb336f07eae439df4a3da38afbac36280f45 --- diff --git a/src/Tizen.NUI/src/internal/Alignment.cs b/src/Tizen.NUI/src/internal/Alignment.cs index e43fe34..5da5a92 100755 --- a/src/Tizen.NUI/src/internal/Alignment.cs +++ b/src/Tizen.NUI/src/internal/Alignment.cs @@ -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) diff --git a/src/Tizen.NUI/src/internal/GaussianBlurView.cs b/src/Tizen.NUI/src/internal/GaussianBlurView.cs index 4bde8c3..c2e77c5 100755 --- a/src/Tizen.NUI/src/internal/GaussianBlurView.cs +++ b/src/Tizen.NUI/src/internal/GaussianBlurView.cs @@ -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) diff --git a/src/Tizen.NUI/src/internal/Model3dView.cs b/src/Tizen.NUI/src/internal/Model3dView.cs index 7c66870..cb6a581 100755 --- a/src/Tizen.NUI/src/internal/Model3dView.cs +++ b/src/Tizen.NUI/src/internal/Model3dView.cs @@ -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) diff --git a/src/Tizen.NUI/src/internal/PageTurnView.cs b/src/Tizen.NUI/src/internal/PageTurnView.cs index 61cbfd1..c94792a 100755 --- a/src/Tizen.NUI/src/internal/PageTurnView.cs +++ b/src/Tizen.NUI/src/internal/PageTurnView.cs @@ -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) diff --git a/src/Tizen.NUI/src/internal/Slider.cs b/src/Tizen.NUI/src/internal/Slider.cs index fad752c..8df9be4 100755 --- a/src/Tizen.NUI/src/internal/Slider.cs +++ b/src/Tizen.NUI/src/internal/Slider.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs b/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs index 5bfe0a6..3f2d165 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs @@ -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(); diff --git a/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs b/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs index ce3a7d4..e5ea920 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs index 366d821..008211d 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs index c898ac8..0c31cd9 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs index 10d6acb..4cacebf 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index 698d0d2..71e85ce 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -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 /// 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 /// /// Sets the position of the View for X and Y.
- /// By default, sets the position vector between the parent origin and anchor point(default).
+ /// By default, sets the position vector between the parent origin and pivot point(default).
/// If Position inheritance if disabled, sets the world position.
///
public Position2D Position2D @@ -1754,13 +1754,13 @@ namespace Tizen.NUI.BaseComponents } /// - /// 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. /// /// 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. /// - public bool PositionUsesAnchorPoint + public bool PositionUsesPivotPoint { get { @@ -2818,7 +2818,7 @@ namespace Tizen.NUI.BaseComponents /// /// Gets/Sets the anchor-point of an view.
/// 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.
- /// The default anchor point is AnchorPoint.Center (0.5, 0.5, 0.5).
+ /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).
/// An view position is the distance between its parent-origin and this anchor-point.
/// An view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.
///
The View has been initialized.
@@ -2915,7 +2915,7 @@ namespace Tizen.NUI.BaseComponents /// /// Gets/Sets the position of the View.
- /// By default, sets the position vector between the parent origin and anchor point(default).
+ /// By default, sets the position vector between the parent origin and pivot point(default).
/// If Position inheritance if disabled, sets the world position.
///
public Position Position @@ -3576,7 +3576,7 @@ namespace Tizen.NUI.BaseComponents /// /// Gets/Sets whether a child view inherits it's parent's position.
/// Default is to inherit.
- /// 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.
+ /// 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.
///
public bool InheritPosition { diff --git a/src/Tizen.NUI/src/public/FlexContainer.cs b/src/Tizen.NUI/src/public/FlexContainer.cs index e82bc4c..09b1985 100755 --- a/src/Tizen.NUI/src/public/FlexContainer.cs +++ b/src/Tizen.NUI/src/public/FlexContainer.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/NUIConstants.cs b/src/Tizen.NUI/src/public/NUIConstants.cs index cd559ae..2b63ffd 100755 --- a/src/Tizen.NUI/src/public/NUIConstants.cs +++ b/src/Tizen.NUI/src/public/NUIConstants.cs @@ -1072,7 +1072,7 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants. + /// PivotPoint constants. /// public struct PivotPoint { diff --git a/src/Tizen.NUI/src/public/Position.cs b/src/Tizen.NUI/src/public/Position.cs index cff3f9b..1c66e93 100755 --- a/src/Tizen.NUI/src/public/Position.cs +++ b/src/Tizen.NUI/src/public/Position.cs @@ -558,9 +558,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 0.0 + /// PivotPoint constants: 0.0 /// - public static float AnchorPointTop + public static float PivotPointTop { get { @@ -571,9 +571,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 1.0 + /// PivotPoint constants: 1.0 /// - public static float AnchorPointBottom + public static float PivotPointBottom { get { @@ -584,9 +584,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 0.0 + /// PivotPoint constants: 0.0 /// - public static float AnchorPointLeft + public static float PivotPointLeft { get { @@ -597,9 +597,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 1.0 + /// PivotPoint constants: 1.0 /// - public static float AnchorPointRight + public static float PivotPointRight { get { @@ -610,9 +610,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 0.0 + /// PivotPoint constants: 0.0 /// - public static float AnchorPointMiddle + public static float PivotPointMiddle { get { @@ -623,9 +623,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 0.0, 0.0, 0.5 + /// PivotPoint constants: 0.0, 0.0, 0.5 /// - public static Position AnchorPointTopLeft + public static Position PivotPointTopLeft { get { @@ -637,9 +637,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 0.5, 0.0, 0.5 + /// PivotPoint constants: 0.5, 0.0, 0.5 /// - public static Position AnchorPointTopCenter + public static Position PivotPointTopCenter { get { @@ -651,9 +651,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 1.0, 0.0, 0.5 + /// PivotPoint constants: 1.0, 0.0, 0.5 /// - public static Position AnchorPointTopRight + public static Position PivotPointTopRight { get { @@ -665,9 +665,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 0.0, 0.5, 0.5 + /// PivotPoint constants: 0.0, 0.5, 0.5 /// - public static Position AnchorPointCenterLeft + public static Position PivotPointCenterLeft { get { @@ -679,9 +679,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 0.5, 0.5, 0.5 + /// PivotPoint constants: 0.5, 0.5, 0.5 /// - public static Position AnchorPointCenter + public static Position PivotPointCenter { get { @@ -693,9 +693,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 1.0, 0.5, 0.5 + /// PivotPoint constants: 1.0, 0.5, 0.5 /// - public static Position AnchorPointCenterRight + public static Position PivotPointCenterRight { get { @@ -707,9 +707,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 0.0, 1.0, 0.5 + /// PivotPoint constants: 0.0, 1.0, 0.5 /// - public static Position AnchorPointBottomLeft + public static Position PivotPointBottomLeft { get { @@ -721,9 +721,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 0.5, 1.0, 0.5 + /// PivotPoint constants: 0.5, 1.0, 0.5 /// - public static Position AnchorPointBottomCenter + public static Position PivotPointBottomCenter { get { @@ -735,9 +735,9 @@ namespace Tizen.NUI } /// - /// AnchorPoint constants: 1.0, 1.0, 0.5 + /// PivotPoint constants: 1.0, 1.0, 0.5 /// - public static Position AnchorPointBottomRight + public static Position PivotPointBottomRight { get { diff --git a/src/Tizen.NUI/src/public/ProgressBar.cs b/src/Tizen.NUI/src/public/ProgressBar.cs index 913f913..5de2847 100755 --- a/src/Tizen.NUI/src/public/ProgressBar.cs +++ b/src/Tizen.NUI/src/public/ProgressBar.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/Scrollable.cs b/src/Tizen.NUI/src/public/Scrollable.cs index 57e8a9d..f464990 100755 --- a/src/Tizen.NUI/src/public/Scrollable.cs +++ b/src/Tizen.NUI/src/public/Scrollable.cs @@ -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 +} diff --git a/src/Tizen.NUI/src/public/TableView.cs b/src/Tizen.NUI/src/public/TableView.cs index 28f5aad..99ca7dd 100755 --- a/src/Tizen.NUI/src/public/TableView.cs +++ b/src/Tizen.NUI/src/public/TableView.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/UIComponents/Button.cs b/src/Tizen.NUI/src/public/UIComponents/Button.cs index 4559b03..313d2f9 100755 --- a/src/Tizen.NUI/src/public/UIComponents/Button.cs +++ b/src/Tizen.NUI/src/public/UIComponents/Button.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/UIComponents/Popup.cs b/src/Tizen.NUI/src/public/UIComponents/Popup.cs index 72ad327..4d7a0e2 100755 --- a/src/Tizen.NUI/src/public/UIComponents/Popup.cs +++ b/src/Tizen.NUI/src/public/UIComponents/Popup.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs b/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs index 828af76..bb6e19c 100755 --- a/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs +++ b/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/VideoView.cs b/src/Tizen.NUI/src/public/VideoView.cs index a5363ca..f50f417 100755 --- a/src/Tizen.NUI/src/public/VideoView.cs +++ b/src/Tizen.NUI/src/public/VideoView.cs @@ -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) diff --git a/src/Tizen.NUI/src/public/ViewWrapper.cs b/src/Tizen.NUI/src/public/ViewWrapper.cs index deb1b85..f931357 100755 --- a/src/Tizen.NUI/src/public/ViewWrapper.cs +++ b/src/Tizen.NUI/src/public/ViewWrapper.cs @@ -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)