Radio Button
fun RadioButton( posX: Number = 0, posY: Number = 0, width: Number = DEFAULT_RADIO_BUTTON_WIDTH, height: Number = DEFAULT_RADIO_BUTTON_HEIGHT, text: String = "", font: Font = Font(), alignment: Alignment = Alignment.CENTER_LEFT, isSelected: Boolean = false, toggleGroup: ToggleGroup = ToggleGroup(), visual: Visual = Visual.EMPTY)
Content copied to clipboard
Creates a RadioButton.
Parameters
pos X
Horizontal coordinate for this RadioButton. Default: 0.
pos Y
Vertical coordinate for this RadioButton. Default: 0.
width
Width for this RadioButton. Default: DEFAULT_RADIO_BUTTON_WIDTH.
height
Height for this RadioButton. Default: DEFAULT_RADIO_BUTTON_HEIGHT.
text
Text to be displayed for this RadioButton.
font
Font to be used to display text.
alignment
Alignment to be used for this RadioButton.
is Selected
The initial state for this RadioButton. Default: false
.
toggle Group
The ToggleGroup of this RadioButton. Default: empty group.
visual
Background Visual. Default: Visual.EMPTY