MyApplication

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Enums

Device
enum Device
Undocumented in source.
Mode
enum Mode
Undocumented in source.
SampleType
enum SampleType
Undocumented in source.

Functions

getCompanyName
string getCompanyName()
Undocumented in source. Be warned that the author may not have intended to support it.
getName
string getName()
Undocumented in source. Be warned that the author may not have intended to support it.
handleJoyButtonDown
void handleJoyButtonDown(int button)
Undocumented in source. Be warned that the author may not have intended to support it.
handleJoyButtonUp
void handleJoyButtonUp(int button)
Undocumented in source. Be warned that the author may not have intended to support it.
handleKeyDown
void handleKeyDown(Key key, dchar character)
Undocumented in source. Be warned that the author may not have intended to support it.
handleKeyUp
void handleKeyUp(Key key)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseDown
void handleMouseDown(uint x, uint y, MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseUp
void handleMouseUp(uint x, uint y, MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
handleQuit
void handleQuit()
Undocumented in source. Be warned that the author may not have intended to support it.
keyDown
void keyDown(Device device)
Undocumented in source. Be warned that the author may not have intended to support it.
keyUp
void keyUp(Device device)
Undocumented in source. Be warned that the author may not have intended to support it.
needJoystick
bool needJoystick()
Undocumented in source. Be warned that the author may not have intended to support it.
needSound
bool needSound()
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(Renderer s)
Undocumented in source. Be warned that the author may not have intended to support it.
run
int run(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

BAND_HEIGHT
enum BAND_HEIGHT;
Undocumented in source.
BAND_HNSECS_PER_PIXEL
enum BAND_HNSECS_PER_PIXEL;
Undocumented in source.
BAND_INTERVAL
enum BAND_INTERVAL;
Undocumented in source.
BAND_TOP
enum BAND_TOP;
Undocumented in source.
BAND_WIDTH
enum BAND_WIDTH;
Undocumented in source.
HISTORY_HEIGHT
enum HISTORY_HEIGHT;
Undocumented in source.
HISTORY_LEFT
enum HISTORY_LEFT;
Undocumented in source.
HISTORY_TOP
enum HISTORY_TOP;
Undocumented in source.
SAMPLE_COLORS
enum SAMPLE_COLORS;
Undocumented in source.

Properties

now
long now [@property getter]

Some (precise) time value of the moment, in hnsecs.

Static variables

lastTick
long lastTick;
Undocumented in source.

Variables

font
FontTextureSource!Font8x8 font;
Undocumented in source.
history
int[][enumLength!SampleType][enumLength!Device] history;
Undocumented in source.
ignoreKeyUp
bool ignoreKeyUp;
Undocumented in source.
mode
Mode mode;
Undocumented in source.
pressed
long pressed;
Undocumented in source.
shell
Shell shell;
Undocumented in source.
tick
MemorySoundSource!SoundSample tick;
Undocumented in source.

Inherited Members

From Application

config
Config config;
getName
string getName()

Returns a string containing the application name, as visible in the window caption and taskbar, and used in filesystem/registry paths.

getCompanyName
string getCompanyName()

Returns the company name (used for Windows registry paths).

run
int run(string[] args)

The application "main" function. The application can create a shell here.

getDefaultShellSettings
ShellSettings getDefaultShellSettings()
Undocumented in source. Be warned that the author may not have intended to support it.
getShellSettings
ShellSettings getShellSettings()

Override these to customize application properties and requirements.

setShellSettings
void setShellSettings(ShellSettings settings)
Undocumented in source. Be warned that the author may not have intended to support it.
isResizable
bool isResizable()
Undocumented in source. Be warned that the author may not have intended to support it.
needSound
bool needSound()
Undocumented in source. Be warned that the author may not have intended to support it.
needJoystick
bool needJoystick()
Undocumented in source. Be warned that the author may not have intended to support it.
handleInit
void handleInit()

Called after video initialization. Video initialization currently also happens when the window is resized. The window size can be accessed via shell.video.getScreenSize.

handleKeyDown
void handleKeyDown(Key key, dchar character)

Override these to handle input.

handleKeyUp
void handleKeyUp(Key key)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseDown
void handleMouseDown(uint x, uint y, MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseUp
void handleMouseUp(uint x, uint y, MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseMove
void handleMouseMove(uint x, uint y, MouseButtons buttons)
Undocumented in source. Be warned that the author may not have intended to support it.
handleJoyAxisMotion
void handleJoyAxisMotion(int axis, short value)
Undocumented in source. Be warned that the author may not have intended to support it.
handleJoyHatMotion
void handleJoyHatMotion(int hat, JoystickHatState state)
Undocumented in source. Be warned that the author may not have intended to support it.
handleJoyButtonDown
void handleJoyButtonDown(int button)
Undocumented in source. Be warned that the author may not have intended to support it.
handleJoyButtonUp
void handleJoyButtonUp(int button)
Undocumented in source. Be warned that the author may not have intended to support it.
handleQuit
void handleQuit()
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(Renderer r)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta