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

Method SendChange

core/widgetevents.go:186–188  ·  view source on GitHub ↗

SendChange sends a new [events.Change] event, which is widely used to signal value changing for most widgets. It takes the event that the new change event is derived from, if any.

(original ...events.Event)

Source from the content-addressed store, hash-verified

184// value changing for most widgets. It takes the event that the new change event
185// is derived from, if any.
186func (wb *WidgetBase) SendChange(original ...events.Event) {
187 wb.Send(events.Change, original...)
188}
189
190// UpdateChange is a helper function that calls [WidgetBase.SendChange]
191// and then [WidgetBase.Update]. That is the correct order, since

Callers 15

UpdateChangeMethod · 0.95
MakeRowMethod · 0.80
PasteAtIndexMethod · 0.80
TestKeyedListChangeKeyFunction · 0.80
InitMethod · 0.80
sendChangeEventMethod · 0.80
sendChangeEventReSyncMethod · 0.80
InitMethod · 0.80
MakeRowMethod · 0.80
InitMethod · 0.80

Calls 1

SendMethod · 0.95

Tested by 5

TestKeyedListChangeKeyFunction · 0.64
TestValidatorValidFunction · 0.64
TestValidatorInvalidFunction · 0.64