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

Method positionChildren

core/layout.go:1630–1635  ·  view source on GitHub ↗

positionChildren runs Position on the children

()

Source from the content-addressed store, hash-verified

1628
1629// positionChildren runs Position on the children
1630func (wb *WidgetBase) positionChildren() {
1631 wb.forVisibleChildren(func(i int, cw Widget, cwb *WidgetBase) bool {
1632 cw.Position()
1633 return tree.Continue
1634 })
1635}
1636
1637// Position: uses the final sizes to position everything within layouts
1638// according to alignment settings.

Callers 2

PositionMethod · 0.80
PositionMethod · 0.80

Calls 2

forVisibleChildrenMethod · 0.95
PositionMethod · 0.65

Tested by

no test coverage detected