/// <summary> /// Creates a new main loop. /// </summary> /// <param name="windowServer">The window server to use to handle events.</param> /// <returns>A new main loop.</returns> /// <exception cref="InvalidOperationException">If <see cref="Current"/> is not null and running.</exception> public static MainRunLoop Create(WindowServer windowServer) { if (Current != null && Current.Running) { throw new InvalidOperationException(); } return(Current = new MainRunLoop(windowServer)); }
private MainRunLoop(WindowServer windowServer) => this.windowServer = windowServer;
internal Cursor(WindowServer windowServer, byte[] imageData, (int width, int height) size, (double x, double y) hotSpot)