ButtonImpl

A button can be pressed by the user to trigger an action.

Constructors

this
this(T sup, void delegate() @(trusted) pressed)

Create a new button.

Members

Aliases

pressed
alias pressed = submitted

Callback to run when the button is pressed.

Functions

drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
press
void press()

Handle mouse input. By default, this will call the pressed delegate if the button is pressed.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin enableInputActions
Undocumented in source.

Variables

isPressed
bool isPressed;
Undocumented in source.

Meta