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

Method IsDisabled

core/flags.go:54–56  ·  view source on GitHub ↗

IsDisabled returns whether this node is flagged as [Disabled]. If so, behave and style appropriately.

()

Source from the content-addressed store, hash-verified

52// IsDisabled returns whether this node is flagged as [Disabled].
53// If so, behave and style appropriately.
54func (wb *WidgetBase) IsDisabled() bool {
55 return wb.StateIs(states.Disabled)
56}
57
58// IsReadOnly returns whether this node is flagged as [ReadOnly] or [Disabled].
59// If so, behave appropriately. Styling is based on each state separately,

Callers 7

addButtonItemsFunction · 0.80
InitMethod · 0.80
triggerShortcutMethod · 0.80
offerCompleteMethod · 0.80
LookupMethod · 0.80
offerCorrectMethod · 0.80
renderDepthBackgroundMethod · 0.80

Calls 1

StateIsMethod · 0.95

Tested by

no test coverage detected