CheckBox
Inherits: Button < BaseButton < Control < CanvasItem < Node < Object CheckButton.
Description
CheckButton in functionality, but it has a different appearance. To follow established UX patterns, it’s recommended to use CheckBox when toggling it has no immediate effect on something. For instance, it should be used when toggling it will only do something once a confirmation button is pressed. BaseButton which contains common properties and methods associated with this node.
Properties
Theme Properties
Theme Property Descriptions
- int check_vadjust The vertical offset used when rendering the check icons (in pixels).
- Texture checked
CheckBoxis checked.
- Texture checked_disabled
CheckBoxis checked and disabled.
- StyleBox disabled
StyleBox to display as a background when the
CheckBoxis disabled.
- StyleBox focus
StyleBox to display as a background when the
CheckBoxis focused.
- Font font
Font to use for the
CheckBoxtext.
- Color font_color
CheckBoxtext’s font color.
- Color font_color_disabled
CheckBoxtext’s font color when it’s disabled.
- Color font_color_focus
CheckBoxtext’s font color when it’s focused. Only replaces the normal text color of the checkbox. Disabled, hovered, and pressed states take precedence over this color.
- Color font_color_hover
CheckBoxtext’s font color when it’s hovered.
- Color font_color_hover_pressed
CheckBoxtext’s font color when it’s hovered and pressed.
- Color font_color_pressed
CheckBoxtext’s font color when it’s pressed.
- StyleBox hover
StyleBox to display as a background when the
CheckBoxis hovered.
- StyleBox hover_pressed
StyleBox to display as a background when the
CheckBoxis hovered and pressed.
- int hseparation The separation between the check icon and the text (in pixels).
- StyleBox normal StyleBox to display as a background.
- StyleBox pressed
StyleBox to display as a background when the
CheckBoxis pressed.
- Texture radio_checked
CheckBoxis configured as a radio button, the icon to display when theCheckBoxis checked.
- Texture radio_checked_disabled
- Texture radio_unchecked
CheckBoxis configured as a radio button, the icon to display when theCheckBoxis unchecked.
- Texture radio_unchecked_disabled
- Texture unchecked
CheckBoxis unchecked.
- Texture unchecked_disabled
CheckBoxis unchecked and disabled.
