odo.api
/
straightway.odo.api.v0.ui
/
Button
/
Initializer
Initializer
interface
Initializer
:
TextHolder.Initializer
Content copied to clipboard
Initializer for buttons.
Functions
Properties
Functions
onPressed
Link copied to clipboard
abstract fun
onPressed
(callback:
Button
.() ->
Unit
)
Content copied to clipboard
Specify the callback when the push button is pressed.
Properties
font
Link copied to clipboard
abstract var
font
:
Font
Content copied to clipboard
The font for the text.
horizontalAlignment
Link copied to clipboard
abstract var
horizontalAlignment
:
HorizontalAlignment
Content copied to clipboard
The horizontal alignment of the element within the available space.
pos
Link copied to clipboard
abstract var
pos
:
Grid.Pos
Content copied to clipboard
The position of the UI element within the grid of its parent element.
sizePolicy
Link copied to clipboard
abstract var
sizePolicy
:
SizePolicy
Content copied to clipboard
The element's size policy.
span
Link copied to clipboard
abstract var
span
:
Grid.Span
Content copied to clipboard
The size of the element within the grid of its parent element.
text
Link copied to clipboard
abstract var
text
:
UiString
Content copied to clipboard
The displayed text.