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

Method RenderWidget

core/splits.go:812–822  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

810}
811
812func (sl *Splits) RenderWidget() {
813 if sl.PushBounds() {
814 sl.ForWidgetChildren(func(i int, kwi Widget, cwb *WidgetBase) bool {
815 cwb.SetState(sl.ChildIsCollapsed(i), states.Invisible)
816 kwi.RenderWidget()
817 return tree.Continue
818 })
819 sl.renderParts()
820 sl.PopBounds()
821 }
822}

Callers

nothing calls this directly

Calls 7

ChildIsCollapsedMethod · 0.95
ForWidgetChildrenMethod · 0.80
renderPartsMethod · 0.80
RenderWidgetMethod · 0.65
PushBoundsMethod · 0.45
SetStateMethod · 0.45
PopBoundsMethod · 0.45

Tested by

no test coverage detected