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

Method SetReadOnly

styles/style.go:502–504  ·  view source on GitHub ↗

SetReadOnly sets the [states.ReadOnly] flag to the given value.

(ro bool)

Source from the content-addressed store, hash-verified

500
501// SetReadOnly sets the [states.ReadOnly] flag to the given value.
502func (s *Style) SetReadOnly(ro bool) {
503 s.SetState(ro, states.ReadOnly)
504}
505
506// CenterAll sets all of the alignment properties to [Center]
507// such that all children are fully centered.

Callers 9

showFileInfoMethod · 0.45
InitMethod · 0.45
fileAtRevisionDialogFunction · 0.45
MakeToolbarMethod · 0.45
handleElementFunction · 0.45
InitMethod · 0.45
ConfigGUIMethod · 0.45
homePageFunction · 0.45
mainFunction · 0.45

Calls 1

SetStateMethod · 0.95

Tested by

no test coverage detected