Button

Undocumented in source.

Constructors

this
this(string text, ButtonHandler pressed)
Undocumented in source.

Members

Functions

focusable
bool focusable()
Undocumented in source. Be warned that the author may not have intended to support it.
handleInput
bool handleInput(KeyInput input)
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(Context c)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

pressed
ButtonHandler pressed;
Undocumented in source.
text
string text;
Undocumented in source.

Inherited Members

From Component

parent
Component parent;
Undocumented in source.
children
Component[] children;
Undocumented in source.
focusPath
Component focusPath;
Undocumented in source.
currentFocusedComponent
Component currentFocusedComponent;
Undocumented in source.
lastFocusedComponent
Component lastFocusedComponent;
Undocumented in source.
inputHandler
InputHandler inputHandler;
Undocumented in source.
left
int left;

Left position of the component relative to the parent

top
int top;

Top position of the component relative to the parent

width
int width;

Width of the component

height
int height;

Height of the component

clearFocus
void clearFocus()
Undocumented in source. Be warned that the author may not have intended to support it.
setInputHandler
auto setInputHandler(InputHandler inputHandler)
Undocumented in source. Be warned that the author may not have intended to support it.
resize
void resize(int left, int top, int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
setParent
auto setParent(Component parent)
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(Context context)
Undocumented in source.
handlesInput
bool handlesInput()
Undocumented in source. Be warned that the author may not have intended to support it.
focusable
bool focusable()
Undocumented in source. Be warned that the author may not have intended to support it.
handleInput
bool handleInput(KeyInput input)
Undocumented in source. Be warned that the author may not have intended to support it.
requestFocus
void requestFocus()
Undocumented in source. Be warned that the author may not have intended to support it.
buildFocusPath
void buildFocusPath(Component focusedComponent, Component path)
Undocumented in source. Be warned that the author may not have intended to support it.
focusNext
void focusNext()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta