ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ScrollState.hpp File Reference

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...

Detailed Description

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.