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

Method StackTopWidget

core/layout.go:622–625  ·  view source on GitHub ↗

StackTopWidget returns the [Frame.StackTop] element as a [WidgetBase].

()

Source from the content-addressed store, hash-verified

620
621// StackTopWidget returns the [Frame.StackTop] element as a [WidgetBase].
622func (fr *Frame) StackTopWidget() *WidgetBase {
623 n := fr.Child(fr.StackTop)
624 return AsWidget(n)
625}
626
627// laySetContentFitOverflow sets Internal and Actual.Content size to fit given
628// new content size, depending on the Styles Overflow: Auto and Scroll types do NOT

Callers 4

RenderChildrenMethod · 0.95
sizeDownGrowStackedMethod · 0.95

Calls 2

AsWidgetFunction · 0.85
ChildMethod · 0.80

Tested by

no test coverage detected