hasAnyScroll returns true if the frame has any scrollbars.
()
| 22 | |
| 23 | // hasAnyScroll returns true if the frame has any scrollbars. |
| 24 | func (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 |
| 29 | func (fr *Frame) ScrollGeom(d math32.Dims) (pos, sz math32.Vector2) { |