public void OnResizedEvent(object sender, GLWindow.ResizedEventArgs e)
        {
            Tizen.Log.Error("NUI", "OnResizedEvent w:" + e.WindowSize.Width);
            Tizen.Log.Error("NUI", "OnResizedEvent w:" + e.WindowSize.Height);

            GLWindow.GLWindowOrientation currentOrientation = mGLWindow.GetCurrentOrientation();
            Tizen.Log.Error("NUI", "OnResizedEvent currentOrientation:" + currentOrientation);

            if (currentOrientation == GLWindow.GLWindowOrientation.Portrait)
            {
                updateWindowRotationAngle(0);
            }
            else if (currentOrientation == GLWindow.GLWindowOrientation.LandscapeInverse)
            {
                updateWindowRotationAngle(270);
            }
            else if (currentOrientation == GLWindow.GLWindowOrientation.PortraitInverse)
            {
                updateWindowRotationAngle(180);
            }
            else
            {
                updateWindowRotationAngle(90);
            }
            updateWindowSize(e.WindowSize.Width, e.WindowSize.Height);
        }
Exemple #2
0
        public void GLWindowGetCurrentOrientation()
        {
            tlog.Debug(tag, $"GLWindowGetCurrentOrientation START");
            string    name      = "myGLWindow";
            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
            GLWindow  a1        = new GLWindow(name, rectangle, true);


            a1.GetCurrentOrientation();
            tlog.Debug(tag, $"GLWindowGetCurrentOrientation END (OK)");
            Assert.Pass("GLWindowGetCurrentOrientation");
        }
Exemple #3
0
        public void GLWindowGetCurrentOrientation()
        {
            tlog.Debug(tag, $"GLWindowGetCurrentOrientation START");
            string    name      = "myGLWindow";
            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
            GLWindow  a1        = new GLWindow(name, rectangle, true);

            var result = a1.GetCurrentOrientation();

            tlog.Debug(tag, "CurrentOrientation : " + result);

            a1.Destroy();
            tlog.Debug(tag, $"GLWindowGetCurrentOrientation END (OK)");
        }