MCPcopy Create free account
hub / github.com/cogentcore/core / IsChecked

Method IsChecked

core/switch.go:219–221  ·  view source on GitHub ↗

IsChecked returns whether the switch is checked.

()

Source from the content-addressed store, hash-verified

217
218// IsChecked returns whether the switch is checked.
219func (sw *Switch) IsChecked() bool {
220 return sw.StateIs(states.Checked)
221}
222
223// SetChecked sets whether the switch it checked.
224func (sw *Switch) SetChecked(on bool) *Switch {

Callers 9

TestSwitchChangeFunction · 0.95
WidgetValueMethod · 0.95
InitMethod · 0.95
updateStackTopMethod · 0.95
makeToolbarMethod · 0.80
makeColumnsMethod · 0.80
InitMethod · 0.80
InitMethod · 0.80
QReplacePromptMethod · 0.80

Calls 1

StateIsMethod · 0.80

Tested by 1

TestSwitchChangeFunction · 0.76