CheckBox
classin packageklyn.gui.windows
public class CheckBox extends AbstractButton:
box = CheckBox("Enable limiter")
box.stateChanged += lambda(event: ValueChangedEvent): print(event.value)
Fields
| Modifier and Type |
Member |
Description |
| public event |
stateChanged |
No summary. |
Properties
| Modifier and Type |
Member |
Description |
| public property |
isChecked |
No summary. |
Properties inherited from Widget: accentColor,
backgroundColor,
borderColor,
bottom,
canFocus,
cornerRadius,
font,
foregroundColor,
hasFocus,
height,
isEnabled,
isHovered,
isManaged,
isVisible,
layoutParams,
margin,
maxHeight,
maxWidth,
minHeight,
minWidth,
parent,
preferredHeight,
preferredWidth,
right,
sizePolicy,
styleClass,
width,
window,
x,
y
Constructors
| Modifier and Type |
Member |
Description |
| public |
CheckBox |
No summary. |
Methods
| Modifier and Type |
Member |
Description |
| public |
checkedValue |
Returns `1` when checked, otherwise `0`. |
| public override |
click click() as Void:
|
Toggles the checked state and emits `stateChanged`. |
| public override |
paint |
Paints the check box using the active KSS colors. |