Exemple #1
0
        public void RenderTaskSetViewportPosition()
        {
            tlog.Debug(tag, $"RenderTaskSetViewportPosition START");

            using (Animatable ani = new Animatable())
            {
                ani.RegisterProperty("ArrowImage", new PropertyValue(arrowImage), Tizen.NUI.PropertyAccessMode.ReadWrite);

                var testingTarget = new RenderTask(ani.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "Can't create success object RenderTask.");
                Assert.IsInstanceOf <RenderTask>(testingTarget, "Should return RenderTask instance.");

                try
                {
                    testingTarget.SetViewportPosition(new Vector2(100, 50));
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception : Failed!");
                }

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"RenderTaskSetViewportPosition END (OK)");
        }