Beispiel #1
0
        public void WindowDevelPropertyTest()
        {
            Window window = Window.Instance;
            uint   count  = window.GetSupportedAuxiliaryHintCount();

            if (count > 0)
            {
                window.BackgroundColor = Color.Blue;
            }
            uint id = window.AddAuxiliaryHint("wm.policy.win.effect.disable", "1");

            window.RemoveAuxiliaryHint(id);
            window.RemoveAuxiliaryHint(2);

            id = window.AddAuxiliaryHint("wm.policy.win.effect.disable", "1");
            window.SetAuxiliaryHintValue(id, "0");
            string value = window.GetAuxiliaryHintValue(id);

            if (value.Length > 0)
            {
                window.BackgroundColor = Color.Red;
            }

            window.SetInputRegion(new Rectangle(0, 0, 0, 0));
            WindowType type = window.Type;

            Tizen.Log.Debug("NUI", "window type is " + type);
            window.Type = WindowType.Notification;

            NotificationLevel level = window.GetNotificationLevel();

            window.SetNotificationLevel(NotificationLevel.High);
            level = window.GetNotificationLevel();
            Tizen.Log.Debug("NUI", "window notification level is " + level);

            window.SetOpaqueState(true);
            Tizen.Log.Debug("NUI", "window is opaque? " + window.IsOpaqueState());

            window.SetScreenOffMode(ScreenOffMode.Never);
            ScreenOffMode screenMode = window.GetScreenOffMode();

            Tizen.Log.Debug("NUI", "window screen mode is " + screenMode);

            bool ret        = window.SetBrightness(50);
            int  brightness = window.GetBrightness();

            Tizen.Log.Debug("NUI", "window brightness is " + brightness, ", return " + ret);
        }
Beispiel #2
0
        private void SetChildViewWindow()
        {
            childViewWindow = Window.Instance; // Window.Get(childView)?

            if (childViewWindow != null)
            {
                childViewWindow.AddAuxiliaryHint("wm.policy.win.msg.use", "1");
                childViewWindow.VisibilityChanged += OnChildViewWindowVisibilityChanged;
                childViewWindow.Resized           += OnChildViewWindowResized;

                childViewWindow.FocusChanged     += OnChildViewWindowFocusChanged;
                childViewWindow.TouchEvent       += OnChildViewWindowTouchEvent;
                childViewWindow.WheelEvent       += OnChildViewWindowWheelEvent;
                childViewWindow.KeyEvent         += OnChildViewWindowKeyEvent;
                childViewWindow.TransitionEffect += OnChildViewWindowTransitionEffect;
                childViewWindow.KeyboardRepeatSettingsChanged += OnChildViewWindowKeyboardRepeatSettingsChanged;
                childViewWindow.ViewAdded        += OnChildViewWindowViewAdded;
                childViewWindow.AuxiliaryMessage += OnAuxiliaryMessageEvent;
            }
        }