MCPcopy Create free account
hub / github.com/cogentcore/core / HasDecoUpdate

Method HasDecoUpdate

paint/span.go:137–142  ·  view source on GitHub ↗

AppendRune adds one rune and associated formatting info

(bg image.Image, deco styles.TextDecorations)

Source from the content-addressed store, hash-verified

135
136// AppendRune adds one rune and associated formatting info
137func (sr *Span) HasDecoUpdate(bg image.Image, deco styles.TextDecorations) {
138 sr.HasDeco |= deco
139 if bg != nil {
140 sr.HasDeco.SetFlag(true, styles.DecoBackgroundColor)
141 }
142}
143
144// IsNewPara returns true if this span starts a new paragraph
145func (sr *Span) IsNewPara() bool {

Callers 3

AppendRuneMethod · 0.95
AppendStringMethod · 0.95
SetRendersMethod · 0.95

Calls 1

SetFlagMethod · 0.65

Tested by

no test coverage detected