Inherits: Button < BaseButton < Control < CanvasItem < Node < Object
A button that represents a binary choice.
CheckBox allows the user to choose one of only two possible options. It's similar to 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 example, it could be used when toggling it will only do something once a confirmation button is pressed.
See also BaseButton which contains common properties and methods associated with this node.
When BaseButton.button_group specifies a ButtonGroup, CheckBox changes its appearance to that of a radio button and uses the various radio_* theme properties.
alignment |
| |
toggle_mode |
|
| ||
0
The vertical offset used when rendering the check icons (in pixels).
The check icon to display when the CheckBox is checked.
The check icon to display when the CheckBox is checked and is disabled.
The check icon to display when the CheckBox is configured as a radio button and is checked.
The check icon to display when the CheckBox is configured as a radio button, is disabled, and is unchecked.
The check icon to display when the CheckBox is configured as a radio button and is unchecked.
The check icon to display when the CheckBox is configured as a radio button, is disabled, and is unchecked.
The check icon to display when the CheckBox is unchecked.
The check icon to display when the CheckBox is unchecked and is disabled.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_checkbox.html