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

Method applyStyle

gui/splitter.go:201–210  ·  view source on GitHub ↗

applyStyle applies the specified splitter style

(ss *SplitterStyle)

Source from the content-addressed store, hash-verified

199
200// applyStyle applies the specified splitter style
201func (s *Splitter) applyStyle(ss *SplitterStyle) {
202
203 s.spacer.SetBordersColor4(&ss.SpacerBorderColor)
204 s.spacer.SetColor4(&ss.SpacerColor)
205 if s.horiz {
206 s.spacer.SetWidth(ss.SpacerSize)
207 } else {
208 s.spacer.SetHeight(ss.SpacerSize)
209 }
210}
211
212// recalc relcalculates the position and sizes of the internal panels
213func (s *Splitter) recalc() {

Callers 1

updateMethod · 0.95

Calls 4

SetBordersColor4Method · 0.80
SetWidthMethod · 0.80
SetHeightMethod · 0.80
SetColor4Method · 0.45

Tested by

no test coverage detected