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

Method cursorSpriteName

texteditor/cursor.go:119–122  ·  view source on GitHub ↗

cursorSpriteName returns the name of the cursor sprite

()

Source from the content-addressed store, hash-verified

117
118// cursorSpriteName returns the name of the cursor sprite
119func (ed *Editor) cursorSpriteName() string {
120 spnm := fmt.Sprintf("%v-%v", editorSpriteName, ed.fontHeight)
121 return spnm
122}
123
124// cursorSprite returns the sprite for the cursor, which is
125// only rendered once with a vertical bar, and just activated and inactivated

Callers 2

renderCursorMethod · 0.95
cursorSpriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected