MCPcopy
hub / github.com/g3n/engine / SetStyles

Method SetStyles

gui/button.go:117–121  ·  view source on GitHub ↗

SetStyles set the button styles overriding the default style

(bs *ButtonStyles)

Source from the content-addressed store, hash-verified

115
116// SetStyles set the button styles overriding the default style
117func (b *Button) SetStyles(bs *ButtonStyles) {
118
119 b.styles = bs
120 b.update()
121}
122
123// onCursor process subscribed cursor events
124func (b *Button) onCursor(evname string, ev interface{}) {

Callers

nothing calls this directly

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected