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

Method renderRegionBox

texteditor/render.go:293–295  ·  view source on GitHub ↗

renderRegionBox renders a region in background according to given background

(reg text.Region, bg image.Image)

Source from the content-addressed store, hash-verified

291
292// renderRegionBox renders a region in background according to given background
293func (ed *Editor) renderRegionBox(reg text.Region, bg image.Image) {
294 ed.renderRegionBoxStyle(reg, &ed.Styles, bg, false)
295}
296
297// renderRegionBoxStyle renders a region in given style and background
298func (ed *Editor) renderRegionBoxStyle(reg text.Region, sty *styles.Style, bg image.Image, fullWidth bool) {

Callers 3

renderSelectMethod · 0.95
renderHighlightsMethod · 0.95
renderScopelightsMethod · 0.95

Calls 1

renderRegionBoxStyleMethod · 0.95

Tested by

no test coverage detected