ButtonWidget

A widget of button.

Constructors

this
this()

Members

Functions

handleButtonPress
void handleButtonPress()
handleMouseButton
bool handleMouseButton(MouseButton btn, bool status, vec2 pos)
loadText
void loadText(dstring text, FontFace face)

Changes the text.

Mixins

__anonymous
mixin DisableModifyChildren
Undocumented in source.

Properties

cursor
const(Cursor) cursor [@property getter]
focusable
bool focusable [@property getter]
text
inout(TextWidget) text [@property getter]

TextWidget.

trackable
bool trackable [@property getter]

Variables

_text
TextWidget _text;
Undocumented in source.
onButtonPress
ButtonPressHandler onButtonPress;

Inherited Members

From PanelWidget

_children
Widget[] _children;
Undocumented in source.
children
Widget[] children [@property getter]
addChild
Widget addChild(Widget child)

Adds the child.

swapChild
void swapChild(Widget c1, Widget c2)

Swaps the children.

removeAllChildren
void removeAllChildren()

Removes all children.

removeChild
void removeChild(Widget child)

Removes the child.

DisableModifyChildren
template DisableModifyChildren()
Undocumented in source.
trackable
bool trackable [@property getter]
focusable
bool focusable [@property getter]

Meta