Example #1
0
        private static void MVMenuItem()
        {
            var mainView = FullscreenUtility.GetMainView();

            if (FullscreenUtility.IsLinux)
            {
                if (wmctrl.IsInstalled)
                {
                    wmctrl.ToggleNativeFullscreen(mainView);
                }
                else
                {
                    Logger.Warning("wmctrl not installed, cannot fullscreen main view. Install it using 'sudo apt-get install wmctrl'");
                }
                return;
            }

            if (!mainView)
            {
                Logger.Error("No Main View found, this should not happen");
                return;
            }

            Fullscreen.ToggleFullscreen(mainView);
        }
Example #2
0
        private static void MVMenuItem()
        {
            var mainView = FullscreenUtility.GetMainView();

            if (!mainView)
            {
                return; // This should never happen
            }
            Fullscreen.ToggleFullscreen(mainView);
        }
Example #3
0
        private static void MVMenuItem()
        {
            var mainView = FullscreenUtility.GetMainView();

            if (FullscreenUtility.IsLinux)
            {
                wmctrl.ToggleNativeFullscreen(mainView);
                return;
            }

            if (!mainView)
            {
                Logger.Error("No Main View found, this should not happen");
                return;
            }

            Fullscreen.ToggleFullscreen(mainView);
        }
Example #4
0
        private static void CVMenuItem()
        {
            var focusedView = FullscreenUtility.GetFocusedViewOrWindow();

            if (!focusedView)
            {
                return;
            }

            if (focusedView is EditorWindow)
            {
                Fullscreen.ToggleFullscreen(focusedView as EditorWindow);
            }
            else
            {
                Fullscreen.ToggleFullscreen(focusedView);
            }
        }
Example #5
0
        private static void CVMenuItem()
        {
            var focusedView = FullscreenUtility.IsLinux ?
                              EditorWindow.focusedWindow : // Linux does not support View fullscreen, only EditorWindow
                              FullscreenUtility.GetFocusedViewOrWindow();

            if (!focusedView || focusedView is PlaceholderWindow)
            {
                return;
            }

            if (focusedView is EditorWindow)
            {
                Fullscreen.ToggleFullscreen(focusedView as EditorWindow);
            }
            else
            {
                Fullscreen.ToggleFullscreen(focusedView);
            }
        }
Example #6
0
        private static void SVMenuItem()
        {
            var sceneView = FindCandidateForFullscreen <SceneView>(SceneView.lastActiveSceneView);

            Fullscreen.ToggleFullscreen(sceneView);
        }
Example #7
0
        private static void GVMenuItem()
        {
            var gameView = FindCandidateForFullscreen(Types.GameView, FullscreenUtility.GetMainGameView());

            Fullscreen.ToggleFullscreen(Types.GameView, gameView);
        }