MCPcopy Index your code
hub / github.com/g3n/engine / applyStyle

Method applyStyle

gui/window.go:403–407  ·  view source on GitHub ↗

applyStyle applies the specified WindowTitleStyle.

(s *WindowTitleStyle)

Source from the content-addressed store, hash-verified

401
402// applyStyle applies the specified WindowTitleStyle.
403func (wt *WindowTitle) applyStyle(s *WindowTitleStyle) {
404
405 wt.Panel.ApplyStyle(&s.PanelStyle)
406 wt.label.SetColor4(&s.FgColor)
407}
408
409// recalc recalculates the height and position of the label in the title bar.
410func (wt *WindowTitle) recalc() {

Callers

nothing calls this directly

Calls 2

ApplyStyleMethod · 0.45
SetColor4Method · 0.45

Tested by

no test coverage detected