/// <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()); }
/// <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()); }