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

Method renderBBox

texteditor/render.go:80–86  ·  view source on GitHub ↗

renderBBox is the render region

()

Source from the content-addressed store, hash-verified

78
79// renderBBox is the render region
80func (ed *Editor) renderBBox() image.Rectangle {
81 bb := ed.Geom.ContentBBox
82 spc := ed.Styles.BoxSpace().Size().ToPointCeil()
83 // bb.Min = bb.Min.Add(spc)
84 bb.Max = bb.Max.Sub(spc)
85 return bb
86}
87
88// charStartPos returns the starting (top left) render coords for the given
89// position -- makes no attempt to rationalize that pos (i.e., if not in

Callers 11

charStartPosVisibleMethod · 0.95
lineBBoxMethod · 0.95
renderDepthBackgroundMethod · 0.95
renderRegionBoxStyleMethod · 0.95
renderAllLinesMethod · 0.95
renderLineNumberMethod · 0.95
firstVisibleLineMethod · 0.95
lastVisibleLineMethod · 0.95
PixelToCursorMethod · 0.95

Calls 4

ToPointCeilMethod · 0.80
BoxSpaceMethod · 0.80
SizeMethod · 0.65
SubMethod · 0.45

Tested by

no test coverage detected