Button

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

Styles:

  • styleKey = Default style for the button.
  • hoverStyleKey = Style to apply when the button is hovered.
  • pressStyleKey = Style to apply when the button is pressed.
  • focusStyleKey = Style to apply when the button is focused.

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

_pressed
void _pressed()

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

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

Pick the style.

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

Mixins

__anonymous
mixin DefineStyles!("pressStyle", q{ hoverStyle })
Undocumented in source.
__anonymous
mixin enableInputActions
Undocumented in source.

Variables

isPressed
bool isPressed;
Undocumented in source.

Meta