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

Method RenderWidget

core/render.go:380–387  ·  view source on GitHub ↗

RenderWidget renders the widget and any parts and children that it has. It does not render if the widget is invisible. It calls Widget.Render] for widget-specific rendering.

()

Source from the content-addressed store, hash-verified

378// It does not render if the widget is invisible. It calls Widget.Render]
379// for widget-specific rendering.
380func (wb *WidgetBase) RenderWidget() {
381 if wb.PushBounds() {
382 wb.This.(Widget).Render()
383 wb.renderParts()
384 wb.renderChildren()
385 wb.PopBounds()
386 }
387}
388
389func (wb *WidgetBase) renderParts() {
390 if wb.Parts != nil {

Callers

nothing calls this directly

Calls 5

PushBoundsMethod · 0.95
renderPartsMethod · 0.95
renderChildrenMethod · 0.95
PopBoundsMethod · 0.95
RenderMethod · 0.65

Tested by

no test coverage detected