Creates a window based on the given image. It's client area width and height is equal to the image. (A window's client area is the drawable space inside; it excludes the title bar, etc.)
Closes the window and terminates it's event loop.
The event loop automatically returns when the window is closed pulseTimeout is given in milliseconds.
Handles a higher level keyboard event - c is the character just pressed.
What follows are the event handlers. These are set automatically by the eventLoop function, but are still public so you can change them later. Handles a low-level keyboard event
Platform specific - handle any native messages this window gets. * * Note: this is called *in addition to* other event handlers.