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

Method hasAnyScroll

core/scroll.go:24–26  ·  view source on GitHub ↗

hasAnyScroll returns true if the frame has any scrollbars.

()

Source from the content-addressed store, hash-verified

22
23// hasAnyScroll returns true if the frame has any scrollbars.
24func (fr *Frame) hasAnyScroll() bool {
25 return fr.HasScroll[math32.X] || fr.HasScroll[math32.Y]
26}
27
28// ScrollGeom returns the target position and size for scrollbars
29func (fr *Frame) ScrollGeom(d math32.Dims) (pos, sz math32.Vector2) {

Callers 1

parentScrollFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected