GluiButton

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

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

Handle keyboard input.

mouseImpl
void mouseImpl()

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

pickStyle
const(Style) pickStyle()

Pick the style.

Mixins

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

Structs

__anonymous
struct __anonymous
Undocumented in source.

Meta