SimpleWindow

Undocumented in source.

Constructors

this
this(Image image, string title)

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.)

this
this(Size size, string title)
Undocumented in source.
this
this(int width, int height, string title)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

close
void close()

Closes the window and terminates it's event loop.

draw
ScreenPainter draw()
Undocumented in source. Be warned that the author may not have intended to support it.
eventLoop
int eventLoop(long pulseTimeout, T eventHandlers)

The event loop automatically returns when the window is closed pulseTimeout is given in milliseconds.

Properties

image
Image image [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

backingImage
Image backingImage;
Undocumented in source.
handleCharEvent
void delegate(dchar c) handleCharEvent;

Handles a higher level keyboard event - c is the character just pressed.

handleKeyEvent
void delegate(int key) handleKeyEvent;

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

handleMouseEvent
void delegate(MouseEvent) handleMouseEvent;
Undocumented in source.
handleNativeEvent
NativeEventHandler handleNativeEvent;

Platform specific - handle any native messages this window gets. * * Note: this is called *in addition to* other event handlers.

handlePulse
void delegate() handlePulse;
Undocumented in source.
height
int height;
Undocumented in source.
width
int width;
Undocumented in source.

Meta