MCPcopy Create free account
hub / github.com/andlabs/ui / Button

Struct Button

button.go:15–19  ·  view source on GitHub ↗

Button is a Control that represents a button that the user can click to perform an action. A Button has a text label that should describe what the button does.

Source from the content-addressed store, hash-verified

13// click to perform an action. A Button has a text label that should
14// describe what the button does.
15type Button struct {
16 ControlBase
17 b *C.uiButton
18 onClicked func(*Button)
19}
20
21// NewButton creates a new Button with the given text as its label.
22func NewButton(text string) *Button {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected