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

Method setMethodImpl

core/funcbutton.go:400–408  ·  view source on GitHub ↗

setMethodImpl is the underlying implementation of [FuncButton.SetFunc] for methods. It should typically not be used by end-user code.

(gmet *types.Method, rmet reflect.Value)

Source from the content-addressed store, hash-verified

398// setMethodImpl is the underlying implementation of [FuncButton.SetFunc] for methods.
399// It should typically not be used by end-user code.
400func (fb *FuncButton) setMethodImpl(gmet *types.Method, rmet reflect.Value) *FuncButton {
401 return fb.setFuncImpl(&types.Func{
402 Name: gmet.Name,
403 Doc: gmet.Doc,
404 Directives: gmet.Directives,
405 Args: gmet.Args,
406 Returns: gmet.Returns,
407 }, rmet)
408}
409
410// showReturnsDialog runs a dialog displaying the given function return
411// values for the function associated with the function button. It does

Callers 1

SetFuncMethod · 0.95

Calls 1

setFuncImplMethod · 0.95

Tested by

no test coverage detected