Beispiel #1
0
        /// <summary>
        /// Gets the main monitor.
        /// </summary>
        /// <returns>The main monitor.</returns>
        public static IMonitor GetMainMonitor()
        {
            if (!SilkManager.IsRegistered <IWindowPlatform>())
            {
                Window.Init();
            }

            return(SilkManager.Get <IWindowPlatform>().GetMainMonitor());
        }
Beispiel #2
0
        /// <summary>
        /// Gets all monitors present on this window platform.
        /// </summary>
        /// <returns>All monitors present on this window platform</returns>
        public static IEnumerable <IMonitor> GetMonitors()
        {
            if (!SilkManager.IsRegistered <IWindowPlatform>())
            {
                Window.Init();
            }

            return(SilkManager.Get <IWindowPlatform>().GetMonitors());
        }