MCPcopy Create free account
hub / github.com/B33pBeeps/redthread / drawNoteAt

Function drawNoteAt

internal/app/draw.go:261–263  ·  view source on GitHub ↗

drawNoteAt renders the full note (border, tape, title, body, decor) at an arbitrary rect. Used by both normal rendering and the zoom transition.

(c *Canvas, rect Rect, n *Note, selected bool, textMode TextStyleMode)

Source from the content-addressed store, hash-verified

259// drawNoteAt renders the full note (border, tape, title, body, decor) at
260// an arbitrary rect. Used by both normal rendering and the zoom transition.
261func drawNoteAt(c *Canvas, rect Rect, n *Note, selected bool, textMode TextStyleMode) {
262 drawNoteInternal(c, rect, n, selected, textMode, nil)
263}
264
265func drawNoteInternal(c *Canvas, rect Rect, n *Note, selected bool, textMode TextStyleMode, borderOverride *RGB) {
266 tint := GetTint(n.Tint)

Callers 1

drawNoteFunction · 0.85

Calls 1

drawNoteInternalFunction · 0.85

Tested by

no test coverage detected