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

Method StyleTree

core/style.go:148–153  ·  view source on GitHub ↗

StyleTree calls [WidgetBase.Style] on every widget in tree underneath and including this widget.

()

Source from the content-addressed store, hash-verified

146// StyleTree calls [WidgetBase.Style] on every widget in tree
147// underneath and including this widget.
148func (wb *WidgetBase) StyleTree() {
149 wb.WidgetWalkDown(func(cw Widget, cwb *WidgetBase) bool {
150 cw.Style()
151 return tree.Continue
152 })
153}
154
155// Restyle ensures that the styling of the widget and all of its children
156// is updated and rendered by calling [WidgetBase.StyleTree] and

Callers 4

RestyleMethod · 0.95
applyStyleSceneMethod · 0.80
SizeFinalMethod · 0.80

Calls 2

WidgetWalkDownMethod · 0.95
StyleMethod · 0.65

Tested by 1