23#include "guillaume/components/scrollable.hpp"
31 return _contentOffset;
37 _contentOffset = offset;
66 utility::math::Vector2F
69 return utility::math::Vector2F(
70 { std::max(0.0f, _contentSize.x - viewport.getWidth()),
71 std::max(0.0f, _contentSize.y - viewport.getHeight()) });
77 _contentOffset.x = std::clamp(_contentOffset.x, 0.0f, maxOffset.x);
78 _contentOffset.y = std::clamp(_contentOffset.y, 0.0f, maxOffset.y);
void setHasChanged(bool hasChanged)
Raise or lower the changed flag.
State. Every class here is plain data attached to an entity.