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)
| 398 | // setMethodImpl is the underlying implementation of [FuncButton.SetFunc] for methods. |
| 399 | // It should typically not be used by end-user code. |
| 400 | func (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 |