Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 private MainRunLoop(WindowServer windowServer) => this.windowServer = windowServer;
Exemplo n.º 3
0
 internal Cursor(WindowServer windowServer, byte[] imageData, (int width, int height) size, (double x, double y) hotSpot)