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

Method renderSelect

texteditor/render.go:261–266  ·  view source on GitHub ↗

renderSelect renders the selection region as a selected background color.

()

Source from the content-addressed store, hash-verified

259
260// renderSelect renders the selection region as a selected background color.
261func (ed *Editor) renderSelect() {
262 if !ed.HasSelection() {
263 return
264 }
265 ed.renderRegionBox(ed.SelectRegion, ed.SelectColor)
266}
267
268// renderHighlights renders the highlight regions as a
269// highlighted background color.

Callers 1

renderAllLinesMethod · 0.95

Calls 2

HasSelectionMethod · 0.95
renderRegionBoxMethod · 0.95

Tested by

no test coverage detected