ButtonWidget

A widget of button.

Constructors

this
this()

Members

Functions

handleButtonPress
void handleButtonPress()
handleMouseButton
bool handleMouseButton(MouseButton btn, bool status, vec2 pos)

Properties

cursor
const(Cursor) cursor [@property getter]
focusable
bool focusable [@property getter]
trackable
bool trackable [@property getter]

Variables

onButtonPress
ButtonPressHandler onButtonPress;

Inherited Members

From TextWidget

_textElm
TextElement _textElm;
Undocumented in source.
_text
dstring _text;
Undocumented in source.
_font
FontFace _font;
Undocumented in source.
textOriginRate
ref textOriginRate [@property getter]

Rate of text origin.

text
dstring text [@property getter]

Text.

font
FontFace font [@property getter]

Font.

textPosRate
vec2 textPosRate;

Rate of text position.

wantedSize
vec2 wantedSize [@property getter]
loadText
void loadText(dstring v, FontFace f)

Changes text.

drawText
void drawText(Window win, float xshift)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(Window win, ColorSet parent)
trackable
bool trackable [@property getter]
focusable
bool focusable [@property getter]

Meta