Rename constant AnchorPoint to PivotPoint 79/132379/1
authorUmar <m.umar@partner.samsung.com>
Fri, 2 Jun 2017 18:04:45 +0000 (19:04 +0100)
committerUmar <m.umar@partner.samsung.com>
Fri, 2 Jun 2017 18:04:45 +0000 (19:04 +0100)
Change-Id: Ieecfbc01c380d5051feee9b13b7369af6f80447d

23 files changed:
NUISamples/NUISamples/NUISamples.TizenTV/examples/control-dashboard.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/custom-control.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/dali-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/date-picker.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/flex-container.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/hello-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/hello-world.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/image-view.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/positionUsesAnchorPoint-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/relative-vector.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/scroll-view.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/sibling-order-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/test1.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/user-alphafunction.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/visual-animation-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/visual-animation-test2.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/visual-animation-test3.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/visual-view-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/visual-view-test2.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/visual-view-test3.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/visuals-using-custom-view/visuals-using-custom-view.cs
Tizen.NUI/src/public/CustomView/Spin.cs
Tizen.NUI/src/public/NUIConstants.cs

index ff74609..adc919a 100644 (file)
@@ -85,7 +85,7 @@ namespace ControlDashboard
             TextLabel topLabel = new TextLabel();
             topLabel.WidthResizePolicy = ResizePolicyType.FillToParent;
             topLabel.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;
-            topLabel.PivotPoint = AnchorPoint.TopCenter;
+            topLabel.PivotPoint = PivotPoint.TopCenter;
             topLabel.SetSizeModeFactor(new Vector3(0.0f, 0.1f, 0.0f));
             topLabel.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);
             topLabel.TextColor = Color.White;
@@ -102,7 +102,7 @@ namespace ControlDashboard
             _contentContainer.WidthResizePolicy = ResizePolicyType.FillToParent;
             _contentContainer.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;
             _contentContainer.SetSizeModeFactor(new Vector3(0.0f, 0.9f, 0.0f));
-            _contentContainer.PivotPoint = AnchorPoint.BottomCenter;
+            _contentContainer.PivotPoint = PivotPoint.BottomCenter;
             _contentContainer.Position = new Position(0, _window.Size.Height * 0.1f, 0);
             _contentContainer.SetRelativeHeight(0, 0.07f);
             _contentContainer.SetRelativeHeight(1, 0.26f);
@@ -317,7 +317,7 @@ namespace ControlDashboard
                 {
                     PushButton button = new PushButton();
                     button.LabelText = "Popup";
-                    button.PivotPoint = AnchorPoint.Center;
+                    button.PivotPoint = PivotPoint.Center;
                     button.MaximumSize = new Size2D(150, 100);
                     _popup = CreatePopup();
                     _popup.SetTitle(CreateTitle("Popup"));
@@ -345,7 +345,7 @@ namespace ControlDashboard
                 {
                     PushButton button = new PushButton();
                     button.LabelText = "Toast";
-                    button.PivotPoint = AnchorPoint.Center;
+                    button.PivotPoint = PivotPoint.Center;
                     button.Clicked += (obj, ee) =>
                     {
                         TypeInfo typeInfo = new TypeInfo(TypeRegistry.Get().GetTypeInfo("PopupToast"));
@@ -390,22 +390,22 @@ namespace ControlDashboard
             footer.WidthResizePolicy = ResizePolicyType.FillToParent;
             footer.HeightResizePolicy = ResizePolicyType.Fixed;
             footer.Size = new Size(0.0f, 80.0f, 0.0f);
-            footer.PivotPoint = AnchorPoint.Center;
+            footer.PivotPoint = PivotPoint.Center;
 
             PushButton okButton = CreateOKButton();
-            okButton.PivotPoint = AnchorPoint.Center;
+            okButton.PivotPoint = PivotPoint.Center;
             okButton.WidthResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent;
             okButton.HeightResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent;
             okButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f));
 
             PushButton cancelButton = CreateCancelButton();
-            cancelButton.PivotPoint = AnchorPoint.Center;
+            cancelButton.PivotPoint = PivotPoint.Center;
             cancelButton.WidthResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent;
             cancelButton.HeightResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent;
             cancelButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f));
 
             TableView controlLayout = new TableView(1, 2);
-            controlLayout.PivotPoint = AnchorPoint.Center;
+            controlLayout.PivotPoint = PivotPoint.Center;
             controlLayout.WidthResizePolicy = ResizePolicyType.FillToParent;
             controlLayout.HeightResizePolicy = ResizePolicyType.FillToParent;
             controlLayout.SetCellPadding(new Size2D(10, 10));
index b7fbe17..250d7b0 100644 (file)
@@ -202,7 +202,7 @@ namespace CustomControlTest
             FlexContainer container = new FlexContainer();
 
             container.ParentOrigin = ParentOrigin.TopLeft;
-            container.PivotPoint = AnchorPoint.TopLeft;
+            container.PivotPoint = PivotPoint.TopLeft;
             container.FlexDirection = (int)FlexContainer.FlexDirectionType.Column;
             container.WidthResizePolicy = ResizePolicyType.FillToParent;
             container.HeightResizePolicy = ResizePolicyType.FillToParent;
@@ -216,7 +216,7 @@ namespace CustomControlTest
                 // Create a container to layout the image and rating (in each row) horizontally
                 FlexContainer imageRow = new FlexContainer();
                 imageRow.ParentOrigin = ParentOrigin.TopLeft;
-                imageRow.PivotPoint = AnchorPoint.TopLeft;
+                imageRow.PivotPoint = PivotPoint.TopLeft;
                 imageRow.FlexDirection = FlexContainer.FlexDirectionType.Row;
                 imageRow.Flex = 1.0f;
                 container.Add(imageRow);
@@ -236,7 +236,7 @@ namespace CustomControlTest
 
                 // Add the rating control to the row
                 view.ParentOrigin = ParentOrigin.Center;
-                view.PivotPoint = AnchorPoint.Center;
+                view.PivotPoint = PivotPoint.Center;
                 view.Size = new Vector3(200.0f, 40.0f, 0.0f);
                 view.Flex = 0.7f;
                 view.AlignSelf = (int)FlexContainer.Alignment.AlignCenter;
index 7ad57aa..05d118a 100755 (executable)
@@ -159,7 +159,7 @@ namespace DaliTest
 
             TextLabel text = new TextLabel("Hello Mono World");
             text.ParentOrigin = ParentOrigin.Center;
-            text.PivotPoint = AnchorPoint.Center;
+            text.PivotPoint = PivotPoint.Center;
             text.HorizontalAlignment = HorizontalAlignment.Center;
             window.GetDefaultLayer().Add(text);
 
@@ -541,7 +541,7 @@ namespace DaliTest
             label.TextColor = Color.Red;
             label.PointSize = 30.0f;
             label.ParentOrigin = ParentOrigin.TopLeft;
-            label.PivotPoint = AnchorPoint.TopLeft;
+            label.PivotPoint = PivotPoint.TopLeft;
             label.Position = new Position(0.0f, 50.0f, 0.0f);
             Window.Instance.GetDefaultLayer().Add(label);
             label.VisibilityChanged += (sender, e) =>
@@ -555,7 +555,7 @@ namespace DaliTest
             PushButton button = new PushButton();
             button.LabelText = "Change Visibility";
             button.ParentOrigin = ParentOrigin.TopLeft;
-            button.PivotPoint = AnchorPoint.TopLeft;
+            button.PivotPoint = PivotPoint.TopLeft;
             Window.Instance.GetDefaultLayer().Add(button);
             button.Clicked += (sender, e) =>
             {
@@ -578,7 +578,7 @@ namespace DaliTest
             image.ResourceUrl = _resPath + "/images/dog-anim.gif";
             image.Size2D = new Size2D(150, 150);
             image.ParentOrigin = ParentOrigin.TopLeft;
-            image.PivotPoint = AnchorPoint.TopLeft;
+            image.PivotPoint = PivotPoint.TopLeft;
             image.Position = new Position(0.0f, 150.0f, 0.0f);
             image.ResourceReady += (sender, e) =>
             {
index ac65cc2..6ae7cdb 100644 (file)
@@ -58,7 +58,7 @@ namespace DatePickerTest
             _container = new FlexContainer();
 
             //_container.ParentOrigin = ParentOrigin.Center;
-            _container.PivotPoint = AnchorPoint.Center;
+            _container.PivotPoint = PivotPoint.Center;
             _container.FlexDirection = FlexContainer.FlexDirectionType.Row;
             _container.Size = new Vector3(480.0f, 150.0f, 0.0f);
             _container.Position2D = new Position2D(400, 400);
@@ -67,7 +67,7 @@ namespace DatePickerTest
 
             // Create a Spin control for year
             _spinYear = new Spin();
-            _spinYear.PivotPoint = AnchorPoint.Center;
+            _spinYear.PivotPoint = PivotPoint.Center;
             _spinYear.Flex = 0.3f;
             _spinYear.FlexMargin = new Vector4(5.0f, 0.0f, 5.0f, 0.0f);
             _container.Add(_spinYear);
@@ -84,7 +84,7 @@ namespace DatePickerTest
 
             // Create a Spin control for month
             _spinMonth = new Spin();
-            _spinMonth.PivotPoint = AnchorPoint.Center;
+            _spinMonth.PivotPoint = PivotPoint.Center;
             _spinMonth.Flex = 0.3f;
             _spinMonth.FlexMargin = new Vector4(5.0f, 0.0f, 5.0f, 0.0f);
             _container.Add(_spinMonth);
@@ -101,7 +101,7 @@ namespace DatePickerTest
 
             // Create a Spin control for day
             _spinDay = new Spin();
-            _spinDay.PivotPoint = AnchorPoint.Center;
+            _spinDay.PivotPoint = PivotPoint.Center;
             _spinDay.Flex = 0.3f;
             _spinDay.FlexMargin = new Vector4(5.0f, 0.0f, 5.0f, 0.0f);
             _container.Add(_spinDay);
index ce64758..78d29cd 100644 (file)
@@ -35,7 +35,7 @@ namespace FlexContainerTest
 
             container = new FlexContainer();
             container.Size = new Size(Window.Instance.Size.Width, Window.Instance.Size.Height, 0);
-            container.PivotPoint = AnchorPoint.TopLeft;
+            container.PivotPoint = PivotPoint.TopLeft;
             container.Padding = new Vector4(100, 100, 100, 100);
 
             container.FlexWrap = FlexContainer.WrapType.Wrap;
@@ -90,7 +90,7 @@ namespace FlexContainerTest
             pushButton1.MinimumSize = new Size2D(400, 200);
             pushButton1.LabelText = "+PreFocusChange";
             pushButton1.ParentOrigin = ParentOrigin.TopLeft;
-            pushButton1.PivotPoint = AnchorPoint.TopLeft;
+            pushButton1.PivotPoint = PivotPoint.TopLeft;
             pushButton1.Position2D = new Position2D(200, 800);
             pushButton1.Clicked += (sender, e) =>
             {
@@ -108,7 +108,7 @@ namespace FlexContainerTest
             pushButton2.MinimumSize = new Size2D(400, 200);
             pushButton2.LabelText = "-PreFocusChange";
             pushButton2.ParentOrigin = ParentOrigin.TopLeft;
-            pushButton2.PivotPoint = AnchorPoint.TopLeft;
+            pushButton2.PivotPoint = PivotPoint.TopLeft;
             pushButton2.Position2D = new Position2D(800, 800);
             pushButton2.Clicked += (sender, e) =>
             {
index 7e7da46..b14dbfb 100644 (file)
@@ -64,7 +64,7 @@ namespace HelloTest
             // Add a _text label to the window
             _text = new TextLabel("Hello Mono World");
             _text.ParentOrigin = ParentOrigin.Center;
-            _text.PivotPoint = AnchorPoint.Center;
+            _text.PivotPoint = PivotPoint.Center;
             _text.HorizontalAlignment = HorizontalAlignment.Center;
             _text.PointSize = 32.0f;
 
index 2d9c793..75838c1 100755 (executable)
@@ -84,7 +84,7 @@ namespace HelloWorldTest
 
             _text = new TextLabel("Hello NUI World");
             _text.ParentOrigin = ParentOrigin.Center;
-            _text.PivotPoint = AnchorPoint.Center;
+            _text.PivotPoint = PivotPoint.Center;
             _text.HorizontalAlignment = HorizontalAlignment.Center;
             _text.PointSize = 32.0f;
             _text.TextColor = Color.Magenta;
index 0c16ce3..5d1787d 100755 (executable)
@@ -89,7 +89,7 @@ namespace ImageViewTest
             _imageView.ResourceUrl = resources+"/images/00_popup_bg.9.png";
             //_imageView.Border = new Rectangle(100, 100, 100, 100);
             _imageView.ParentOrigin = ParentOrigin.TopLeft;
-            _imageView.PivotPoint = AnchorPoint.TopLeft;
+            _imageView.PivotPoint = PivotPoint.TopLeft;
             _imageView.Position = new Position(5.0f, 5.0f, 0.0f);
             _imageView.PixelArea = new Vector4(0.0f, 0.0f, 0.5f, 0.5f);
             _imageView.Size = new Size(200.0f, 80.0f, 0.0f);
@@ -98,7 +98,7 @@ namespace ImageViewTest
 
             _pushButton1 = new PushButton();
             _pushButton1.ParentOrigin = ParentOrigin.BottomLeft;
-            _pushButton1.PivotPoint = AnchorPoint.BottomLeft;
+            _pushButton1.PivotPoint = PivotPoint.BottomLeft;
             _pushButton1.LabelText = "start animation";
             _pushButton1.Position = new Vector3(0.0f, window.Size.Height * 0.1f, 0.0f);
             _pushButton1.Clicked += OnPushButtonClicked1;
@@ -106,7 +106,7 @@ namespace ImageViewTest
 
             _pushButton2 = new PushButton();
             _pushButton2.ParentOrigin = ParentOrigin.BottomLeft;
-            _pushButton2.PivotPoint = AnchorPoint.BottomLeft;
+            _pushButton2.PivotPoint = PivotPoint.BottomLeft;
             _pushButton2.LabelText = "reload image with same URL";
             _pushButton2.Position = new Vector3(0.0f, window.Size.Height * 0.2f, 0.0f);
             _pushButton2.Clicked += OnPushButtonClicked2;
@@ -114,7 +114,7 @@ namespace ImageViewTest
 
             ImageView syncImage = new ImageView();
             syncImage.ParentOrigin = ParentOrigin.CenterLeft;
-            syncImage.PivotPoint = AnchorPoint.CenterLeft;
+            syncImage.PivotPoint = PivotPoint.CenterLeft;
             syncImage.PositionUsesAnchorPoint = true;
             syncImage.Size2D = new Size2D(150, 150);
             syncImage.ResourceUrl = resources+"/images/gallery-3.jpg";
@@ -127,7 +127,7 @@ namespace ImageViewTest
             _map.Add(NpatchImageVisualProperty.SynchronousLoading, new PropertyValue(true));
             ImageView nPatchImage = new ImageView();
             nPatchImage.ParentOrigin = ParentOrigin.BottomLeft;
-            nPatchImage.PivotPoint = AnchorPoint.BottomLeft;
+            nPatchImage.PivotPoint = PivotPoint.BottomLeft;
             nPatchImage.PositionUsesAnchorPoint = true;
             nPatchImage.Size = new Size(300.0f, 100.0f, 0.0f);
             nPatchImage.ImageMap = _map;
@@ -135,7 +135,7 @@ namespace ImageViewTest
 
             ImageView syncNineImage = new ImageView();
             syncNineImage.ParentOrigin = ParentOrigin.CenterLeft;
-            syncNineImage.PivotPoint = AnchorPoint.CenterLeft;
+            syncNineImage.PivotPoint = PivotPoint.CenterLeft;
             syncNineImage.Position2D = new Position2D(0, 200);
             syncNineImage.PositionUsesAnchorPoint = true;
             syncNineImage.Size = new Size(150.0f, 150.0f, 0.0f);
@@ -154,7 +154,7 @@ namespace ImageViewTest
                 _imageView = new ImageView();
                 _imageView.ResourceUrl = resources+"/images/gallery-3.jpg";
                 _imageView.ParentOrigin = ParentOrigin.Center;
-                _imageView.PivotPoint = AnchorPoint.Center;
+                _imageView.PivotPoint = PivotPoint.Center;
                 _imageView.PixelArea = new Vector4(0.0f, 0.0f, 0.5f, 0.5f);
                 //_imageView.SetResizePolicy(ResizePolicyType.USE_NATURAL_SIZE, DimensionType.ALL_DIMENSIONS);
                 layer.Add(_imageView);
index 17a33b7..fd29d03 100644 (file)
@@ -61,7 +61,7 @@ namespace PositionUsesAnchorPointTest
             _window = Window.Instance;
             _text1 = new TextLabel("PositionUsesAnchorPoint");
             _text1.ParentOrigin = ParentOrigin.Center;
-            _text1.PivotPoint = AnchorPoint.Center;
+            _text1.PivotPoint = PivotPoint.Center;
             _text1.Position = new Position(0, 0, 0);
             _text1.PositionUsesAnchorPoint = true;
             _text1.HorizontalAlignment = HorizontalAlignment.Center;
@@ -72,7 +72,7 @@ namespace PositionUsesAnchorPointTest
 
             _text2 = new TextLabel("PositionNotUsesAnchorPoint");
             _text2.ParentOrigin = ParentOrigin.Center;
-            _text2.PivotPoint = AnchorPoint.Center;
+            _text2.PivotPoint = PivotPoint.Center;
             _text2.Position = new Position(0, 0, 0);
             _text2.PositionUsesAnchorPoint = false;
             _text2.HorizontalAlignment = HorizontalAlignment.Center;
index 6b7d18f..afc5bce 100644 (file)
@@ -63,7 +63,7 @@ namespace RelativeVectorTest
             _imageView = new ImageView();
             _imageView.ResourceUrl = resources+"/images/gallery-3.jpg";
             _imageView.ParentOrigin = ParentOrigin.Center;
-            _imageView.PivotPoint = AnchorPoint.Center;
+            _imageView.PivotPoint = PivotPoint.Center;
             _imageView.PixelArea = new RelativeVector4(0.0f, 0.0f, 0.0f, 0.0f);
 
             _window.GetDefaultLayer().Add(_imageView);
index bdcb83d..f4dfc72 100644 (file)
@@ -72,7 +72,7 @@ namespace ScrollViewTest
       Size windowSize = new Size(window.Size.Width, window.Size.Height, 0.0f);
       _scrollView.Size = new Size(windowSize.Width, windowSize.Height, 0.0f);
       _scrollView.ParentOrigin = ParentOrigin.Center;
-      _scrollView.PivotPoint = AnchorPoint.Center;
+      _scrollView.PivotPoint = PivotPoint.Center;
       window.GetDefaultLayer().Add(_scrollView);
 
       // Add actors to a scroll view with 3 pages
@@ -86,7 +86,7 @@ namespace ScrollViewTest
           pageActor.WidthResizePolicy = ResizePolicyType.FillToParent;
           pageActor.HeightResizePolicy = ResizePolicyType.FillToParent;
           pageActor.ParentOrigin = ParentOrigin.Center;
-          pageActor.PivotPoint = AnchorPoint.Center;
+          pageActor.PivotPoint = PivotPoint.Center;
           pageActor.Position = new Position(pageColumn * windowSize.Width, pageRow * windowSize.Height, 0.0f);
 
           // Add images in a 3x4 grid layout for each page
@@ -102,7 +102,7 @@ namespace ScrollViewTest
               int imageId = (row * imageColumns + column) % 2 + 1;
               ImageView imageView = new ImageView(resources+"/images/image-" + imageId + ".jpg");
               imageView.ParentOrigin = ParentOrigin.Center;
-              imageView.PivotPoint = AnchorPoint.Center;
+              imageView.PivotPoint = PivotPoint.Center;
               imageView.Size = new Size(imageSize.X, imageSize.Y, imageSize.Z);
               imageView.Position = new Position( margin * 0.5f + (imageSize.X + margin) * column - windowSize.Width * 0.5f + imageSize.X * 0.5f,
                   margin * 0.5f + (imageSize.Y + margin) * row - windowSize.Height * 0.5f + imageSize.Y * 0.5f, 0.0f );
@@ -128,7 +128,7 @@ namespace ScrollViewTest
       // Create a horizontal scroll bar in the bottom of scroll view (which is optional)
       _scrollBar = new ScrollBar(ScrollBar.Direction.Horizontal);
       _scrollBar.ParentOrigin = ParentOrigin.BottomLeft;
-      _scrollBar.PivotPoint = AnchorPoint.TopLeft;
+      _scrollBar.PivotPoint = PivotPoint.TopLeft;
       _scrollBar.WidthResizePolicy = ResizePolicyType.FitToChildren;
       _scrollBar.HeightResizePolicy = ResizePolicyType.FillToParent;
       _scrollBar.Orientation = new Rotation( new Radian( new Degree( 270.0f ) ), Vector3.ZAxis );
@@ -141,7 +141,7 @@ namespace ScrollViewTest
       _scrollView.FocusGained += OnKey;
       _text = new TextLabel("View Touch Event Handler Test");
       _text.ParentOrigin = ParentOrigin.Center;
-      _text.PivotPoint = AnchorPoint.Center;
+      _text.PivotPoint = PivotPoint.Center;
       _text.HorizontalAlignment = HorizontalAlignment.Center;
             _text.PointSize = 20.0f;
 
index b25a7f5..da5f17f 100755 (executable)
@@ -83,7 +83,7 @@ namespace SiblingOrderTest
                 _view.LabelText = "view" + i;
                 _view.MinimumSize = new Size2D(100, 50);
                 _view.ParentOrigin = ParentOrigin.TopLeft;
-                _view.PivotPoint = AnchorPoint.TopLeft;
+                _view.PivotPoint = PivotPoint.TopLeft;
                 _view.Position2D = _myPos + new Position2D(20 * i, 10 * i);
 
                 _window.GetDefaultLayer().Add(_view);
@@ -102,7 +102,7 @@ namespace SiblingOrderTest
                 _view.LabelText = "view" + i;
                 _view.MinimumSize = new Size2D(100, 50);
                 _view.ParentOrigin = ParentOrigin.TopLeft;
-                _view.PivotPoint = AnchorPoint.TopLeft;
+                _view.PivotPoint = PivotPoint.TopLeft;
                 _view.Position2D = _myPos + new Position2D(20 * i, 10 * i);
                 _view.SiblingOrder = i;
 
@@ -122,7 +122,7 @@ namespace SiblingOrderTest
                 _view.LabelText = "view" + i;
                 _view.MinimumSize = new Size2D(100, 50);
                 _view.ParentOrigin = ParentOrigin.TopLeft;
-                _view.PivotPoint = AnchorPoint.TopLeft;
+                _view.PivotPoint = PivotPoint.TopLeft;
                 _view.Position2D = _myPos + new Position2D(20 * i, 10 * i);
                 _view.SiblingOrder = 10-i;
 
@@ -142,7 +142,7 @@ namespace SiblingOrderTest
                 _view.LabelText = "view" + i;
                 _view.MinimumSize = new Size2D(100, 50);
                 _view.ParentOrigin = ParentOrigin.TopLeft;
-                _view.PivotPoint = AnchorPoint.TopLeft;
+                _view.PivotPoint = PivotPoint.TopLeft;
                 _view.Position2D = _myPos + new Position2D(20 * i, 10 * i);
                 if (i<5)
                 {
@@ -169,7 +169,7 @@ namespace SiblingOrderTest
                 _view.LabelText = "view" + i;
                 _view.MinimumSize = new Size2D(100, 50);
                 _view.ParentOrigin = ParentOrigin.TopLeft;
-                _view.PivotPoint = AnchorPoint.TopLeft;
+                _view.PivotPoint = PivotPoint.TopLeft;
                 _view.Position2D = _myPos + new Position2D(20 * i, 10 * i);
                 if (i<5)
                 {
index bdeb8d7..15f74ec 100644 (file)
@@ -95,7 +95,7 @@ namespace Test1
                 _view.MinimumSize = new Size2D(100, 50);
                 _view.LabelText = "sibling" + i;
                 _view.ParentOrigin = ParentOrigin.TopLeft;
-                _view.PivotPoint = AnchorPoint.TopLeft;
+                _view.PivotPoint = PivotPoint.TopLeft;
                 _view.Position2D = _myPos + new Position2D(20 * i, 10 * i);
                 _view.Clicked += (sender, ee) =>
                 {
@@ -125,7 +125,7 @@ namespace Test1
             }
 
             _txt.ParentOrigin = ParentOrigin.TopLeft;
-            _txt.PivotPoint = AnchorPoint.TopLeft;
+            _txt.PivotPoint = PivotPoint.TopLeft;
             _txt.Text = "on top: sibling#, sibling order=?";
             _txt.Position2D = _myPos + new Position2D(-50, 200);
             _txt.TextColor = Color.Blue;
@@ -178,7 +178,7 @@ namespace Test1
                 VisualTest _visualTest = new VisualTest();
                 _visualTest.TextVisual = "Hello NUI Text Visual!";
                 _visualTest.ParentOrigin = ParentOrigin.TopLeft;
-                _visualTest.PivotPoint = AnchorPoint.TopLeft;
+                _visualTest.PivotPoint = PivotPoint.TopLeft;
                 _visualTest.Size2D = new Size2D(600, 200);
                 _visualTest.Position2D = new Position2D(50, 400);
                 _visualTest.BackgroundColor = Color.Yellow;
@@ -223,7 +223,7 @@ namespace Test1
             /* TEST CODE */
             View view = new View();
             view.ParentOrigin = ParentOrigin.TopLeft;
-            view.PivotPoint = AnchorPoint.TopLeft;
+            view.PivotPoint = PivotPoint.TopLeft;
             view.MinimumSize = new Size2D(100, 100);
             view.BackgroundColor = Color.Red;
             _window.GetDefaultLayer().Add(view);
index f5568ed..e4ac20c 100644 (file)
@@ -72,7 +72,7 @@ namespace UserAlphaFunctionTest
             // Add a _text label to the window
             _text = new TextLabel("Hello Mono World");
             _text.ParentOrigin = ParentOrigin.BottomCenter;
-            _text.PivotPoint = AnchorPoint.BottomCenter;
+            _text.PivotPoint = PivotPoint.BottomCenter;
             _text.HorizontalAlignment = HorizontalAlignment.Center;
             _text.PointSize = 32.0f;
             window.GetDefaultLayer().Add(_text);
@@ -81,7 +81,7 @@ namespace UserAlphaFunctionTest
             _view1.Size = new Vector3(200.0f, 200.0f, 0.0f);
             _view1.BackgroundColor = Color.Green;
             _view1.ParentOrigin = ParentOrigin.Center;
-            _view1.PivotPoint = AnchorPoint.Center;
+            _view1.PivotPoint = PivotPoint.Center;
             _view1.WidthResizePolicy = ResizePolicyType.Fixed;
             _view1.HeightResizePolicy = ResizePolicyType.Fixed;
             _view1.AddedToWindow += OnWindow;
@@ -91,7 +91,7 @@ namespace UserAlphaFunctionTest
             _view2.BackgroundColor = Color.Red;
             _view2.Size = new Vector3(50.0f, 50.0f, 0.0f);
             _view2.ParentOrigin = ParentOrigin.TopLeft;
-            _view2.PivotPoint = AnchorPoint.TopLeft;
+            _view2.PivotPoint = PivotPoint.TopLeft;
             _view2.WidthResizePolicy = ResizePolicyType.Fixed;
             _view2.HeightResizePolicy = ResizePolicyType.Fixed;
             _view1.Add(_view2);
@@ -100,7 +100,7 @@ namespace UserAlphaFunctionTest
             _view3.BackgroundColor = Color.Blue;
             _view3.Size = new Vector3(50.0f, 50.0f, 0.0f);
             _view3.ParentOrigin = ParentOrigin.TopLeft;
-            _view3.PivotPoint = AnchorPoint.TopLeft;
+            _view3.PivotPoint = PivotPoint.TopLeft;
             _view3.WidthResizePolicy = ResizePolicyType.Fixed;
             _view3.HeightResizePolicy = ResizePolicyType.Fixed;
             _view1.Add(_view3);
index 9f6917e..c2678e8 100755 (executable)
@@ -65,7 +65,7 @@ namespace VisaulAnimationExample
 
             TableView titleLayout = new TableView(2, 1);
             titleLayout.Name = ("TitleLayout");
-            titleLayout.PivotPoint = AnchorPoint.TopLeft;
+            titleLayout.PivotPoint = PivotPoint.TopLeft;
             titleLayout.Position2D = new Position2D(10, 10);
             titleLayout.Size2D = new Size2D((int)(window.Size.Width * 0.9f), (int)(window.Size.Height * 0.9f));
             titleLayout.SetCellPadding(new Size2D(10, 10));
@@ -85,7 +85,7 @@ namespace VisaulAnimationExample
             contentLayout.Name = ("ContentLayout");
             contentLayout.WidthResizePolicy = ResizePolicyType.FillToParent;
             contentLayout.HeightResizePolicy = ResizePolicyType.FillToParent;
-            contentLayout.PivotPoint = AnchorPoint.TopLeft;
+            contentLayout.PivotPoint = PivotPoint.TopLeft;
             contentLayout.SetCellPadding(new Size2D(10, 10));
             contentLayout.BackgroundColor = Color.Magenta;
             titleLayout.AddChild(contentLayout, new TableView.CellPosition(1, 0));
@@ -117,7 +117,7 @@ namespace VisaulAnimationExample
             _shadowButton.LabelText = "Toggle Transition";
             _shadowButton.Name = ("ToggleTransition");
             _shadowButton.ParentOrigin = ParentOrigin.Center;
-            _shadowButton.PivotPoint = AnchorPoint.Center;
+            _shadowButton.PivotPoint = PivotPoint.Center;
             _shadowButton.Clicked += (obj, ev) =>
             {
                 _active = !_active;
@@ -165,7 +165,7 @@ namespace VisaulAnimationExample
             PushButton svgButton = new PushButton();
             svgButton.LabelText = "SVG Visual Test";
             svgButton.Name = ("svg_visual_test");
-            svgButton.PivotPoint = AnchorPoint.Center;
+            svgButton.PivotPoint = PivotPoint.Center;
             svgButton.WidthResizePolicy = ResizePolicyType.FillToParent;
             svgButton.HeightResizePolicy = ResizePolicyType.FillToParent;
             svgButton.Clicked += (obj, ev) =>
@@ -205,7 +205,7 @@ namespace VisaulAnimationExample
             PushButton gifButton = new PushButton();
             gifButton.LabelText = "AnimatedImage Visual Test";
             gifButton.Name = ("gif_visual_test");
-            gifButton.PivotPoint = AnchorPoint.Center;
+            gifButton.PivotPoint = PivotPoint.Center;
             gifButton.WidthResizePolicy = ResizePolicyType.FillToParent;
             gifButton.HeightResizePolicy = ResizePolicyType.FillToParent;
             gifButton.Clicked += (obj, ev) =>
index 598cbd7..9488850 100755 (executable)
@@ -66,7 +66,7 @@ namespace VisaulAnimationExample
 
             TableView titleLayout = new TableView(2, 1);
             titleLayout.Name = ("TitleLayout");
-            titleLayout.PivotPoint = AnchorPoint.TopLeft;
+            titleLayout.PivotPoint = PivotPoint.TopLeft;
             titleLayout.Position2D = new Position2D(10, 10);
             titleLayout.Size2D = new Size2D((int)(window.Size.Width * 0.9f), (int)(window.Size.Height * 0.9f));
             titleLayout.SetCellPadding(new Size2D(10, 10));
@@ -86,7 +86,7 @@ namespace VisaulAnimationExample
             contentLayout.Name = ("ContentLayout");
             contentLayout.WidthResizePolicy = ResizePolicyType.FillToParent;
             contentLayout.HeightResizePolicy = ResizePolicyType.FillToParent;
-            contentLayout.PivotPoint = AnchorPoint.TopLeft;
+            contentLayout.PivotPoint = PivotPoint.TopLeft;
             contentLayout.SetCellPadding(new Size2D(10, 10));
             contentLayout.BackgroundColor = Color.Magenta;
             titleLayout.AddChild(contentLayout, new TableView.CellPosition(1, 0));
@@ -118,7 +118,7 @@ namespace VisaulAnimationExample
             _shadowButton1.LabelText = "Toggle Transition Position";
             _shadowButton1.Name = ("ToggleTransition");
             _shadowButton1.ParentOrigin = ParentOrigin.Center;
-            _shadowButton1.PivotPoint = AnchorPoint.Center;
+            _shadowButton1.PivotPoint = PivotPoint.Center;
             _shadowButton1.Clicked += (obj, ev) =>
             {
                 _active1 = !_active1;
@@ -156,7 +156,7 @@ namespace VisaulAnimationExample
             _shadowButton2.LabelText = "Toggle Transition Opacity";
             _shadowButton2.Name = ("ToggleTransition");
             _shadowButton2.ParentOrigin = ParentOrigin.Center;
-            _shadowButton2.PivotPoint = AnchorPoint.Center;
+            _shadowButton2.PivotPoint = PivotPoint.Center;
             _shadowButton2.Clicked += (obj, ev) =>
             {
                 _active2 = !_active2;
@@ -194,7 +194,7 @@ namespace VisaulAnimationExample
             _shadowButton3.LabelText = "Toggle Transition MixColor";
             _shadowButton3.Name = ("ToggleTransition");
             _shadowButton3.ParentOrigin = ParentOrigin.Center;
-            _shadowButton3.PivotPoint = AnchorPoint.Center;
+            _shadowButton3.PivotPoint = PivotPoint.Center;
             _shadowButton3.Clicked += (obj, ev) =>
             {
                 _active3 = !_active3;
index 8a34dd8..535d8f3 100755 (executable)
@@ -70,7 +70,7 @@ namespace VisaulAnimationExample
 
             TableView titleLayout = new TableView(2, 1);
             titleLayout.Name = ("TitleLayout");
-            titleLayout.AnchorPoint = AnchorPoint.TopLeft;
+            titleLayout.PivotPoint = PivotPoint.TopLeft;
             titleLayout.Position2D = new Position2D(10, 10);
             titleLayout.Size2D = new Size2D((int)(window.Size.Width * 0.9f), (int)(window.Size.Height * 0.9f));
             titleLayout.SetCellPadding(new Size2D(10, 10));
@@ -90,7 +90,7 @@ namespace VisaulAnimationExample
             contentLayout.Name = ("ContentLayout");
             contentLayout.WidthResizePolicy = ResizePolicyType.FillToParent;
             contentLayout.HeightResizePolicy = ResizePolicyType.FillToParent;
-            contentLayout.AnchorPoint = AnchorPoint.TopLeft;
+            contentLayout.PivotPoint = PivotPoint.TopLeft;
             contentLayout.SetCellPadding(new Size2D(10, 10));
             contentLayout.BackgroundColor = Color.Magenta;
             titleLayout.AddChild(contentLayout, new TableView.CellPosition(1, 0));
@@ -160,7 +160,7 @@ namespace VisaulAnimationExample
             _shadowButton1.LabelText = "Toggle Transition Position";
             _shadowButton1.Name = ("ToggleTransition");
             _shadowButton1.ParentOrigin = ParentOrigin.Center;
-            _shadowButton1.AnchorPoint = AnchorPoint.Center;
+            _shadowButton1.PivotPoint = PivotPoint.Center;
             _shadowButton1.Clicked += (obj, ev) =>
             {
                 _active1 = !_active1;
index dfcc5c9..2711050 100644 (file)
@@ -61,7 +61,7 @@ namespace VisualViewTest
             /* Create a visual view. */
             _visualView = new VisualView();
             _visualView.ParentOrigin = ParentOrigin.TopLeft;
-            _visualView.PivotPoint = AnchorPoint.TopLeft;
+            _visualView.PivotPoint = PivotPoint.TopLeft;
             _visualView.Size = new Size(window.Size.Width, window.Size.Height, 0.0f);
 
             /* color visual */
index 987299a..0fa3e36 100644 (file)
@@ -125,7 +125,7 @@ namespace VisualViewTest2
 
 
             guide = new TextLabel();
-            guide.PivotPoint = AnchorPoint.TopLeft;
+            guide.PivotPoint = PivotPoint.TopLeft;
             guide.Size2D = new Size2D(800, 200);
             guide.Padding = new Vector4(50, 50, 50, 50);
             guide.MultiLine = true;
index 7f89590..1f01639 100644 (file)
@@ -59,7 +59,7 @@ namespace VisualViewTest3
             /* Create a visual view. */
             _visualView = new VisualView();
             _visualView.ParentOrigin = ParentOrigin.TopLeft;
-            _visualView.PivotPoint = AnchorPoint.TopLeft;
+            _visualView.PivotPoint = PivotPoint.TopLeft;
             _visualView.Size = new Size(window.Size.Width, window.Size.Height, 0.0f);
 
             /* color visual */
index 409117c..ac88d9f 100644 (file)
@@ -52,7 +52,7 @@ namespace VisualsUsingCustomView
             contentLayout.Name = "ContentLayout";
             //contentLayout.WidthResizePolicy = ResizePolicyType.FillToParent;
             //contentLayout.HeightResizePolicy = ResizePolicyType.FillToParent;
-            contentLayout.PivotPoint = AnchorPoint.Center;
+            contentLayout.PivotPoint = PivotPoint.Center;
             contentLayout.ParentOrigin = ParentOrigin.Center;
             contentLayout.Size = new Vector3(window.Size.Width, window.Size.Height, 0.0f);
             contentLayout.SetCellPadding(new Size2D(5, 5));
index 96f2d12..d757ad5 100755 (executable)
@@ -95,7 +95,7 @@ namespace Tizen.NUI
 
             // Create a text field
             _textField = new TextField();
-            _textField.PivotPoint = Tizen.NUI.AnchorPoint.Center;
+            _textField.PivotPoint = Tizen.NUI.PivotPoint.Center;
             _textField.WidthResizePolicy = ResizePolicyType.SizeRelativeToParent;
             _textField.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;
             _textField.SizeModeFactor = new Vector3(1.0f, 0.45f, 1.0f);
index b586387..06f67a9 100755 (executable)
@@ -1073,7 +1073,7 @@ namespace Tizen.NUI
     /// <summary>
     /// AnchorPoint constants.
     /// </summary>
-    public struct AnchorPoint
+    public struct PivotPoint
     {
         public static float Top
         {