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

Method WidgetValue

core/funcbutton.go:127–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func (fb *FuncButton) WidgetValue() any {
128 if !fb.reflectFunc.IsValid() {
129 return nil
130 }
131 return fb.reflectFunc.Interface()
132}
133
134func (fb *FuncButton) SetWidgetValue(value any) error {
135 fb.SetFunc(reflectx.Underlying(reflect.ValueOf(value)).Interface())

Callers

nothing calls this directly

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected