|
ZenitUI
Retained-mode C++20 UI framework
|
Pure data: the scroll offset, bounds, inertia, and drag anchors. More...
#include "CoreTypes.hpp"Go to the source code of this file.
Classes | |
| struct | ZenitUI::ScrollState |
| Offset, bounds, velocity and drag anchors for one scroll container. More... | |
Pure data: the scroll offset, bounds, inertia, and drag anchors.
ScrollState contains no rendering or input logic; it only owns the numeric state that ScrollController mutates. Keeping it separate lets Layout expose getScrollX() / scrollTo() without pulling in the whole controller, and makes it trivial to test.