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

Method OnChanged

fontbutton.go:46–48  ·  view source on GitHub ↗

OnChanged registers f to be run when the user changes the currently selected font in the FontButton. Only one function can be registered at a time.

(f func(*FontButton))

Source from the content-addressed store, hash-verified

44// currently selected font in the FontButton. Only one function can
45// be registered at a time.
46func (b *FontButton) OnChanged(f func(*FontButton)) {
47 b.onChanged = f
48}
49
50//export pkguiDoFontButtonOnChanged
51func pkguiDoFontButtonOnChanged(bb *C.uiFontButton, data unsafe.Pointer) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected