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

Method Render

plot/plotcore/plot.go:135–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133}
134
135func (pt *Plot) Render() {
136 pt.WidgetBase.Render()
137
138 r := pt.Geom.ContentBBox
139 sp := pt.Geom.ScrollOffset()
140 if pt.Plot == nil || pt.Plot.Pixels == nil {
141 draw.Draw(pt.Scene.Pixels, r, colors.Scheme.Surface, sp, draw.Src)
142 return
143 }
144 draw.Draw(pt.Scene.Pixels, r, pt.Plot.Pixels, sp, draw.Src)
145}

Callers

nothing calls this directly

Calls 3

ScrollOffsetMethod · 0.80
RenderMethod · 0.65
DrawMethod · 0.65

Tested by

no test coverage detected