Optionalborderthe box's outline when not checked (drawn look)
Optionalborderthe outline's thickness, in pixels (drawn look); 0 for none
Optionalboxthe box's fill when not checked (drawn look); also the tick's colour
Optionalboxthe box's fill when not checked and under the pointer (drawn look)
Optionalboxthe side of the box, in pixels; with a skin, the height of its off
region by default
Optionalcheckthe box's fill and outline when checked, and a radio button's dot (drawn look)
Optionalcheckedwhether it starts checked
Optionalenabledwhether it answers input; a disabled checkbox is drawn faded, or with
the skin's disabledOn / disabledOff regions
Optionalfonta CSS font family, or the name of a loaded bitmap font
Optionalfontthe label's text height, in pixels; two thirds of boxSize, and at
least 12, by default
Optionalgroupa radio group name: checkboxes sharing it have one checked at a time, and are drawn round. See UICheckbox#group.
OptionalhoverThe scale the widget is drawn at under the pointer, or while it has
the keyboard and gamepad focus, such as 1.05. 1 turns it off.
Optionallabelthe text next to the box, the same in both states; labelOn and
labelOff replace it for one state each
Optionallabelthe label's colour
Optionallabelthe space between the box and the label, in pixels
Optionallabelthe text while not checked; label if left out
Optionallabelthe text while checked; label if left out
OptionalonCalled with the new state when the user checks or unchecks it (click,
tap, or Enter with the focus). Never called when checked is set or
toggle() is called from code. See UICheckbox#onChange.
OptionalpressThe scale the widget is drawn at while held down, such as 0.92.
1 turns it off.
Optionalradiusthe box's corner radius, in pixels (drawn look); ignored by a radio button, which is round
Optionalskindraw the box from atlas regions instead of the drawn look
The settings UICheckbox takes. All are optional.
The colour settings are for the drawn look and are ignored when a
skinis given.