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

Method renderStartPos

texteditor/render.go:75–77  ·  view source on GitHub ↗

renderStartPos is absolute rendering start position from our content pos with scroll This can be offscreen (left, up) based on scrolling.

()

Source from the content-addressed store, hash-verified

73// renderStartPos is absolute rendering start position from our content pos with scroll
74// This can be offscreen (left, up) based on scrolling.
75func (ed *Editor) renderStartPos() math32.Vector2 {
76 return ed.Geom.Pos.Content.Add(ed.Geom.Scroll)
77}
78
79// renderBBox is the render region
80func (ed *Editor) renderBBox() image.Rectangle {

Callers 5

charStartPosMethod · 0.95
charEndPosMethod · 0.95
lineBBoxMethod · 0.95
renderAllLinesMethod · 0.95
handleLinkCursorMethod · 0.95

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected