Initializer

interface Initializer : TextHolder.Initializer

Initializer for buttons.

Functions

onPressed
Link copied to clipboard
abstract fun onPressed(callback: Button.() -> Unit)
Specify the callback when the push button is pressed.

Properties

font
Link copied to clipboard
abstract var font: Font
The font for the text.
horizontalAlignment
Link copied to clipboard
abstract var horizontalAlignment: HorizontalAlignment
The horizontal alignment of the element within the available space.
pos
Link copied to clipboard
abstract var pos: Grid.Pos
The position of the UI element within the grid of its parent element.
sizePolicy
Link copied to clipboard
abstract var sizePolicy: SizePolicy
The element's size policy.
span
Link copied to clipboard
abstract var span: Grid.Span
The size of the element within the grid of its parent element.
text
Link copied to clipboard
abstract var text: UiString
The displayed text.