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

Method SizeFinal

core/table.go:577–600  ·  view source on GitHub ↗

Header layout:

()

Source from the content-addressed store, hash-verified

575// Header layout:
576
577func (tb *Table) SizeFinal() {
578 tb.ListBase.SizeFinal()
579 sg := tb.ListGrid
580 if sg == nil {
581 return
582 }
583 sh := tb.header
584 sh.ForWidgetChildren(func(i int, cw Widget, cwb *WidgetBase) bool {
585 sgb := AsWidget(sg.Child(i))
586 gsz := &sgb.Geom.Size
587 ksz := &cwb.Geom.Size
588 ksz.Actual.Total.X = gsz.Actual.Total.X
589 ksz.Actual.Content.X = gsz.Actual.Content.X
590 ksz.Alloc.Total.X = gsz.Alloc.Total.X
591 ksz.Alloc.Content.X = gsz.Alloc.Content.X
592 return tree.Continue
593 })
594 gsz := &sg.Geom.Size
595 ksz := &sh.Geom.Size
596 ksz.Actual.Total.X = gsz.Actual.Total.X
597 ksz.Actual.Content.X = gsz.Actual.Content.X
598 ksz.Alloc.Total.X = gsz.Alloc.Total.X
599 ksz.Alloc.Content.X = gsz.Alloc.Content.X
600}

Callers

nothing calls this directly

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls 4

AsWidgetFunction · 0.85
ForWidgetChildrenMethod · 0.80
ChildMethod · 0.80
SizeFinalMethod · 0.65

Tested by

no test coverage detected