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;
_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);
{
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"));
{
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"));
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));
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;
// 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);
// 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;
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);
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) =>
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) =>
{
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) =>
{
_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);
// 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);
// 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);
// 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);
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;
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) =>
{
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) =>
{
// 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;
_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;
_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);
_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;
_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;
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";
_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;
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);
_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);
_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;
_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;
_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);
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
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
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 );
// 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 );
_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;
_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);
_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;
_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;
_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)
{
_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)
{
_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) =>
{
}
_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;
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;
/* 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);
// 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);
_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;
_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);
_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);
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));
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));
_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;
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) =>
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) =>
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));
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));
_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;
_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;
_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;
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));
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));
_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;
/* 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 */
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;
/* 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 */
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));
// 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);
/// <summary>
/// AnchorPoint constants.
/// </summary>
- public struct AnchorPoint
+ public struct PivotPoint
{
public static float Top
{