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

Function NewSoloFuncButton

core/funcbutton.go:32–34  ·  view source on GitHub ↗

NewSoloFuncButton returns a standalone [FuncButton] with a fake parent with the given context for popping up any dialogs.

(ctx Widget)

Source from the content-addressed store, hash-verified

30// NewSoloFuncButton returns a standalone [FuncButton] with a fake parent
31// with the given context for popping up any dialogs.
32func NewSoloFuncButton(ctx Widget) *FuncButton {
33 return NewFuncButton(NewWidgetBase()).SetContext(ctx)
34}
35
36// FuncButton is a button that is set up to call a function when it
37// is pressed, using a dialog to prompt the user for any arguments.

Callers 4

RenameFilesMethod · 0.92
MakeToolbarMethod · 0.92
CallFuncFunction · 0.85
makeFilesRowMethod · 0.85

Calls 3

NewFuncButtonFunction · 0.85
NewWidgetBaseFunction · 0.85
SetContextMethod · 0.45

Tested by

no test coverage detected