UIButton

Button widget. Serves for processing some actions when clicking on the widget itself.

Constructors

this
this(Font font, ThemeInfo theme)
Undocumented in source.

Members

Functions

inputHandle
void inputHandle(EventHandler event)
Undocumented in source. Be warned that the author may not have intended to support it.
resize
void resize(uint w, uint h)
Undocumented in source. Be warned that the author may not have intended to support it.
selfDraw
void selfDraw(IRenderer render)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

height
uint height [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
widgetPosition
Vecf widgetPosition [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
uint width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

icon
Image icon;

The icon that is displayed on the widget. serves for the intuitiveness of the button.

label
string label;

The text of the widget that will be displayed directly on the button for intuitiveness.

onClick
ActioncClick onClick;

Action When Button Was Pressed The mouse button that was pressed at the moment is passed as arguments.

onHolder
Action onHolder;

Action when the mouse cursor is over the button.

theme
ThemeInfo theme;

Widget theme.

Inherited Members

From UIWidget

width
uint width [@property getter]

Available width of the widget.

height
uint height [@property getter]

Available height of the widget.

resize
void resize(uint w, uint h)

Resize the widget.

widgetPosition
Vecf widgetPosition [@property getter]

The relative position of the widget. Serves for relative positioning of the widget relative to another or its own object.

Meta