SDL2Shell

Shell implementation using SDL2.

Constructors

this
this(Application application)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

handleEvent
void handleEvent(SDL_Event* event)

Handle a single SDL_Event.

prod
void prod()
Undocumented in source. Be warned that the author may not have intended to support it.
run
void run()
Undocumented in source. Be warned that the author may not have intended to support it.
setCaption
void setCaption(string caption)
Undocumented in source. Be warned that the author may not have intended to support it.
translateMouseButton
MouseButton translateMouseButton(ubyte sdlButton)

Translate an SDL button index to a MouseButton.

translateMouseButtons
MouseButtons translateMouseButtons(uint sdlButtons)

Translate an SDL buttons mask to a MouseButtons.

Manifest constants

SDL_BUTTON_LAST
enum SDL_BUTTON_LAST;

Highest SDL_BUTTON constant.

Variables

application
Application application;
reinitPending
bool reinitPending;
Undocumented in source.
sdlVideo
SDL2CommonVideo sdlVideo;

Inherited Members

From Shell

run
void run()

Run the main loop.

setCaption
void setCaption(string caption)

Set window title.

quit
void quit()

Request the event loop to stop. May be called from another thread.

prod
void prod()

Wake event thread with a no-op event.

video
Video video;

Video implementation.

audio
Audio audio;

Audio implementation.

quitting
bool quitting;
Undocumented in source.

Meta