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

Method Render

core/render.go:373–375  ·  view source on GitHub ↗

Render is the method that widgets should implement to define their custom rendering steps. It should not typically be called outside of [Widget.RenderWidget], which also does other steps applicable for all widgets. The base [WidgetBase.Render] implementation renders the standard box model.

()

Source from the content-addressed store, hash-verified

371// for all widgets. The base [WidgetBase.Render] implementation
372// renders the standard box model.
373func (wb *WidgetBase) Render() {
374 wb.RenderStandardBox()
375}
376
377// RenderWidget renders the widget and any parts and children that it has.
378// It does not render if the widget is invisible. It calls Widget.Render]

Callers

nothing calls this directly

Calls 1

RenderStandardBoxMethod · 0.95

Tested by

no test coverage detected