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

Method Render

core/icon.go:111–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111func (ic *Icon) Render() {
112 ic.renderSVG()
113
114 if ic.svg.Pixels == nil {
115 return
116 }
117 r := ic.Geom.ContentBBox
118 sp := ic.Geom.ScrollOffset()
119 draw.Draw(ic.Scene.Pixels, r, ic.svg.Pixels, sp, draw.Over)
120}

Callers

nothing calls this directly

Calls 3

renderSVGMethod · 0.95
ScrollOffsetMethod · 0.80
DrawMethod · 0.65

Tested by

no test coverage detected