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

Method SetStyles

gui/image_button.go:162–166  ·  view source on GitHub ↗

SetStyles set the button styles overriding the default style

(bs *ImageButtonStyles)

Source from the content-addressed store, hash-verified

160
161// SetStyles set the button styles overriding the default style
162func (b *ImageButton) SetStyles(bs *ImageButtonStyles) {
163
164 b.styles = bs
165 b.update()
166}
167
168// onCursor process subscribed cursor events
169func (b *ImageButton) onCursor(evname string, ev interface{}) {

Callers

nothing calls this directly

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected