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

Method textStyleProperties

texteditor/render.go:66–71  ·  view source on GitHub ↗

textStyleProperties returns the styling properties for text based on HiStyle Markup

()

Source from the content-addressed store, hash-verified

64
65// textStyleProperties returns the styling properties for text based on HiStyle Markup
66func (ed *Editor) textStyleProperties() map[string]any {
67 if ed.Buffer == nil {
68 return nil
69 }
70 return ed.Buffer.Highlighter.CSSProperties
71}
72
73// renderStartPos is absolute rendering start position from our content pos with scroll
74// This can be offscreen (left, up) based on scrolling.

Callers 2

layoutAllLinesMethod · 0.95
layoutLineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected