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

Method SetNewPara

paint/span.go:153–157  ·  view source on GitHub ↗

SetNewPara sets this as starting a new paragraph

()

Source from the content-addressed store, hash-verified

151
152// SetNewPara sets this as starting a new paragraph
153func (sr *Span) SetNewPara() {
154 if len(sr.Render) > 0 {
155 sr.Render[0].Deco.SetFlag(true, styles.DecoParaStart)
156 }
157}
158
159// AppendRune adds one rune and associated formatting info
160func (sr *Span) AppendRune(r rune, face font.Face, clr image.Image, bg image.Image, deco styles.TextDecorations) {

Callers 2

SetHTMLNoPreMethod · 0.80
SetHTMLPreMethod · 0.80

Calls 1

SetFlagMethod · 0.65

Tested by

no test coverage detected