#pragma once #include #include #include namespace dchat { class Scrollbar { public: Scrollbar(); void draw(sf::RenderWindow &window); float getScrollingForContent() const; float width; double maxHeight; double scroll; double maxScroll; double scrollRelative; sf::Vector2f position; sf::Color backgroundColor; sf::Color scrollColor; private: float height; bool grabbing; bool followMouse; sf::Vector2f grabOffset; }; }