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

Method Render

core/switch.go:280–287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278}
279
280func (sw *Switch) Render() {
281 sw.updateStackTop() // important: make sure we're always up-to-date on render
282 st, ok := sw.ChildByName("stack", 0).(*Frame)
283 if ok {
284 st.UpdateStackedVisibility()
285 }
286 sw.WidgetBase.Render()
287}

Callers

nothing calls this directly

Calls 4

updateStackTopMethod · 0.95
ChildByNameMethod · 0.80
RenderMethod · 0.65

Tested by

no test coverage detected