Check Box
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)
Content copied to clipboard
Creates a CheckBox.
Parameters
pos X
Horizontal coordinate for this CheckBox. Default: 0.
pos Y
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.
alignment
Alignment to be used for the text Default: Alignment.CENTER.
is Wrap Text
Defines if text should be wrapped. Default: false
.
visual
Background Visual. Default: Visual.EMPTY
is Checked
The initial checked state. Default: false
.
allow Indeterminate
The initial isIndeterminateAllowed state. Default: false
.
is Indeterminate
The initial isIndeterminate state. Default: false
.