CheckBox

fun CheckBox(    posX: Number = 0,     posY: Number = 0,     width: Number = DEFAULT_CHECKBOX_WIDTH,     height: Number = DEFAULT_CHECKBOX_HEIGHT,     text: String = "",     font: Font = Font(),     alignment: Alignment = Alignment.CENTER,     isWrapText: Boolean = false,     visual: Visual = Visual.EMPTY,     isChecked: Boolean = false,     allowIndeterminate: Boolean = false,     isIndeterminate: Boolean = false)

Creates a CheckBox.

Parameters

posX

Horizontal coordinate for this CheckBox. Default: 0.

posY

Vertical coordinate for this CheckBox. Default: 0.

width

Width for this CheckBox. Default: DEFAULT_CHECKBOX_WIDTH.

height

Height for this CheckBox. Default: DEFAULT_CHECKBOX_HEIGHT.

text

Text for this CheckBox. Default: empty String.

font

Font to be used for the text. Default: default Font constructor.

alignment

Alignment to be used for the text Default: Alignment.CENTER.

isWrapText

Defines if text should be wrapped. Default: false.

visual

Background Visual. Default: Visual.EMPTY

isChecked

The initial checked state. Default: false.

allowIndeterminate

The initial isIndeterminateAllowed state. Default: false.

isIndeterminate

The initial isIndeterminate state. Default: false.