UICheckbox Class
Checkbox UI component for toggle/boolean values.
public class UICheckbox : Brine2D.UI.IUIComponent
Inheritance System.Object → UICheckbox
Implements IUIComponent
| Properties | |
|---|---|
| BorderColor | Border color. |
| BoxSize | Box size in pixels (for the actual checkbox square). |
| CheckedColor | Checked box color. |
| CheckmarkColor | Checkmark color. |
| HoverColor | Hover box color. |
| IsChecked | Whether the checkbox is checked. |
| Label | Checkbox label text. |
| LabelColor | Label text color. |
| LabelSpacing | Spacing between box and label. |
| UncheckedColor | Unchecked box color. |
| Methods | |
|---|---|
| SetHovered(bool) | Called by UICanvas when mouse hovers over checkbox. |
| Toggle() | Called by UICanvas when checkbox is clicked. |
| Events | |
|---|---|
| OnCheckedChanged | Event fired when checked state changes. |