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

Method Position

core/layout.go:1591–1593  ·  view source on GitHub ↗

Position uses the final sizes to set relative positions within layouts according to alignment settings.

()

Source from the content-addressed store, hash-verified

1589// Position uses the final sizes to set relative positions within layouts
1590// according to alignment settings.
1591func (wb *WidgetBase) Position() {
1592 wb.positionParts()
1593}
1594
1595func (wb *WidgetBase) positionWithinAllocMainX(pos math32.Vector2, parJustify, parAlign styles.Aligns) {
1596 sz := &wb.Geom.Size

Callers

nothing calls this directly

Calls 1

positionPartsMethod · 0.95

Tested by

no test coverage detected