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

Method applyStyle

gui/image_button.go:246–252  ·  view source on GitHub ↗

applyStyle applies the specified button style

(bs *ImageButtonStyle)

Source from the content-addressed store, hash-verified

244
245// applyStyle applies the specified button style
246func (b *ImageButton) applyStyle(bs *ImageButtonStyle) {
247
248 b.Panel.ApplyStyle(&bs.PanelStyle)
249 if b.label != nil {
250 b.label.SetColor4(&bs.FgColor)
251 }
252}
253
254// recalc recalculates all dimensions and position from inside out
255func (b *ImageButton) recalc() {

Callers 1

updateMethod · 0.95

Calls 2

ApplyStyleMethod · 0.45
SetColor4Method · 0.45

Tested by

no test coverage detected