RadioButton

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)

Creates a RadioButton.

Parameters

posX

Horizontal coordinate for this RadioButton. Default: 0.

posY

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.

isSelected

The initial state for this RadioButton. Default: false.

toggleGroup

The ToggleGroup of this RadioButton. Default: empty group.

visual

Background Visual. Default: Visual.EMPTY